mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 09:49:15 +03:00
LibWeb: Bring Document closer to spec
This commit is contained in:
parent
cf7a0821b5
commit
e2fa5c0cda
Notes:
sideshowbarker
2024-07-17 11:53:49 +09:00
Author: https://github.com/Igoorx Commit: https://github.com/SerenityOS/serenity/commit/e2fa5c0cda Pull-request: https://github.com/SerenityOS/serenity/pull/13638
@ -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…
Reference in New Issue
Block a user