mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:57:44 +00:00
LibWeb: Bring Document closer to spec
This commit is contained in:
parent
cf7a0821b5
commit
e2fa5c0cda
2 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue