mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 11:17:44 +00:00
LibWeb: Make Range.setStart and Range.setEnd spec compliant
These functions are way more involved than simply setting their respective boundary points :^)
This commit is contained in:
parent
af3c866898
commit
46ce50f74e
6 changed files with 185 additions and 11 deletions
|
@ -71,6 +71,7 @@ public:
|
|||
bool is_document_fragment() const { return type() == NodeType::DOCUMENT_FRAGMENT_NODE; }
|
||||
bool is_parent_node() const { return is_element() || is_document() || is_document_fragment(); }
|
||||
bool is_slottable() const { return is_element() || is_text(); }
|
||||
bool is_attribute() const { return type() == NodeType::ATTRIBUTE_NODE; }
|
||||
|
||||
virtual bool requires_svg_container() const { return false; }
|
||||
virtual bool is_svg_container() const { return false; }
|
||||
|
@ -210,6 +211,8 @@ public:
|
|||
|
||||
String debug_description() const;
|
||||
|
||||
size_t length() const;
|
||||
|
||||
protected:
|
||||
Node(Document&, NodeType);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue