LibWeb: Implement unsafe HTML parsing methods

Both Element's and ShadowRoot's setHTMLUnsafe, and Document's static
parseHTMLUnsafe methods are implemented.
This commit is contained in:
Luke Warlow 2024-06-25 20:55:58 +01:00 committed by Andreas Kling
commit ce8d3d17c4
Notes: sideshowbarker 2024-07-17 01:55:29 +09:00
14 changed files with 129 additions and 31 deletions

View file

@ -676,6 +676,9 @@ public:
Vector<JS::Handle<DOM::Range>> find_matching_text(String const&, CaseSensitivity);
void parse_html_from_a_string(StringView);
static JS::NonnullGCPtr<Document> parse_html_unsafe(JS::VM&, StringView);
protected:
virtual void initialize(JS::Realm&) override;
virtual void visit_edges(Cell::Visitor&) override;