mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-07 18:17:23 +00:00
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:
parent
58fc901578
commit
ce8d3d17c4
Notes:
sideshowbarker
2024-07-17 01:55:29 +09:00
Author: https://github.com/lukewarlow
Commit: ce8d3d17c4
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/282
Reviewed-by: https://github.com/AtkinsSJ
14 changed files with 129 additions and 31 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue