mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:17:35 +00:00
LibWeb: Fully implement the fragment serializing algorithm
Rather than assuming the node's node document is an HTML document, handle XML documents as well.
This commit is contained in:
parent
e1ac9c83b2
commit
13b8eeff54
7 changed files with 19 additions and 13 deletions
|
@ -254,6 +254,9 @@ public:
|
|||
Type document_type() const { return m_type; }
|
||||
void set_document_type(Type type) { m_type = type; }
|
||||
|
||||
// https://dom.spec.whatwg.org/#html-document
|
||||
bool is_html_document() const { return m_type == Type::HTML; }
|
||||
|
||||
// https://dom.spec.whatwg.org/#xml-document
|
||||
bool is_xml_document() const { return m_type == Type::XML; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue