mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:47:35 +00:00
LibWeb: Align Document::document_type()
default with the specification
The DOM specification states that: "Unless stated otherwise, a document’s [...] type is 'xml'". Previously, calls to `Document::document_type()` were returning the incorrect value for non-HTML documents.
This commit is contained in:
parent
f18ea096e0
commit
70b9cddc48
1 changed files with 1 additions and 1 deletions
|
@ -648,7 +648,7 @@ private:
|
||||||
QuirksMode m_quirks_mode { QuirksMode::No };
|
QuirksMode m_quirks_mode { QuirksMode::No };
|
||||||
|
|
||||||
// https://dom.spec.whatwg.org/#concept-document-type
|
// https://dom.spec.whatwg.org/#concept-document-type
|
||||||
Type m_type { Type::HTML };
|
Type m_type { Type::XML };
|
||||||
|
|
||||||
bool m_editable { false };
|
bool m_editable { false };
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue