LibWeb: Bring Document closer to spec

This commit is contained in:
Igor Pissolati 2022-04-12 13:19:35 -03:00 committed by Andreas Kling
parent cf7a0821b5
commit e2fa5c0cda
Notes: sideshowbarker 2024-07-17 11:53:49 +09:00
2 changed files with 6 additions and 0 deletions

View File

@ -67,6 +67,9 @@ public:
void set_url(const AK::URL& url) { m_url = url; }
AK::URL url() const { return m_url; }
String url_string() const { return m_url.to_string(); }
String document_uri() const { return m_url.to_string(); }
Origin origin() const;
void set_origin(Origin const& origin);

View File

@ -29,6 +29,9 @@ interface Document : Node {
readonly attribute DOMImplementation implementation;
[ImplementedAs=url_string] readonly attribute USVString URL;
readonly attribute USVString documentURI;
readonly attribute DOMString characterSet;
readonly attribute DOMString charset;
readonly attribute DOMString inputEncoding;