mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-13 13:02:28 +00:00
LibWeb: Don't crash when querying the CDataSection.assignedSlot property
This commit is contained in:
parent
3518f39b60
commit
521a1be97f
Notes:
sideshowbarker
2024-07-17 01:28:15 +09:00
Author: https://github.com/tcl3
Commit: 521a1be97f
Pull-request: https://github.com/SerenityOS/serenity/pull/23687
Reviewed-by: https://github.com/awesomekling
3 changed files with 11 additions and 1 deletions
|
@ -66,7 +66,7 @@ public:
|
|||
bool is_character_data() const { return type() == NodeType::TEXT_NODE || type() == NodeType::COMMENT_NODE; }
|
||||
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_slottable() const { return is_element() || is_text() || is_cdata_section(); }
|
||||
bool is_attribute() const { return type() == NodeType::ATTRIBUTE_NODE; }
|
||||
bool is_cdata_section() const { return type() == NodeType::CDATA_SECTION_NODE; }
|
||||
virtual bool is_shadow_root() const { return false; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue