mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 14:19:48 +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
Notes:
sideshowbarker
2024-07-17 16:23:55 +09:00
Author: https://github.com/tcl3
Commit: 70b9cddc48
Pull-request: https://github.com/SerenityOS/serenity/pull/23243
Reviewed-by: https://github.com/gmta ✅
1 changed files with 1 additions and 1 deletions
|
@ -648,7 +648,7 @@ private:
|
|||
QuirksMode m_quirks_mode { QuirksMode::No };
|
||||
|
||||
// https://dom.spec.whatwg.org/#concept-document-type
|
||||
Type m_type { Type::HTML };
|
||||
Type m_type { Type::XML };
|
||||
|
||||
bool m_editable { false };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue