mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:48:12 +00:00
LibWeb: Add Comment and DocumentFragment bindings, move querySelector...
...{All} to ParentNode. Exposes createDocumentFragment and createComment on Document. Stubs out the document.body setter. Also adds ParentNode back :^).
This commit is contained in:
parent
7b755e6a58
commit
8b807e65d7
17 changed files with 223 additions and 54 deletions
|
@ -58,6 +58,11 @@ ParsingContext::ParsingContext(const DOM::Document& document)
|
|||
{
|
||||
}
|
||||
|
||||
ParsingContext::ParsingContext(const DOM::ParentNode& parent_node)
|
||||
: m_document(&parent_node.document())
|
||||
{
|
||||
}
|
||||
|
||||
bool ParsingContext::in_quirks_mode() const
|
||||
{
|
||||
return m_document ? m_document->in_quirks_mode() : false;
|
||||
|
|
|
@ -34,6 +34,7 @@ class ParsingContext {
|
|||
public:
|
||||
ParsingContext();
|
||||
explicit ParsingContext(const DOM::Document&);
|
||||
explicit ParsingContext(const DOM::ParentNode&);
|
||||
|
||||
bool in_quirks_mode() const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue