mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 21:48:11 +00:00
LibWeb: Use the new "ensure_pre_insertion_validity" in the HTML document parser
Previously we didn't check if we could insert the element in the adjusted insertion location's parent. Also makes the return type NonnullRefPtr, as that's what element is.
This commit is contained in:
parent
5beacf08a2
commit
b82a00d657
2 changed files with 23 additions and 6 deletions
|
@ -127,8 +127,8 @@ private:
|
|||
|
||||
DOM::Text* find_character_insertion_node();
|
||||
void flush_character_insertions();
|
||||
RefPtr<DOM::Element> insert_foreign_element(const HTMLToken&, const FlyString&);
|
||||
RefPtr<DOM::Element> insert_html_element(const HTMLToken&);
|
||||
NonnullRefPtr<DOM::Element> insert_foreign_element(const HTMLToken&, const FlyString&);
|
||||
NonnullRefPtr<DOM::Element> insert_html_element(const HTMLToken&);
|
||||
DOM::Element& current_node();
|
||||
DOM::Element& adjusted_current_node();
|
||||
DOM::Element& node_before_current_node();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue