mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 02:05:07 +02: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:
Notes:
sideshowbarker
2024-07-18 20:42:41 +09:00
Author: https://github.com/Lubrsi Commit: https://github.com/SerenityOS/serenity/commit/b82a00d657d Pull-request: https://github.com/SerenityOS/serenity/pull/6158
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user