1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:38:11 +00:00

LibWeb: Add DOMParser

This allows you to invoke the HTML document parser and retrieve a
document as though it was loaded as a web page, minus any scripting
ability.

This does not currently support XML parsing.

This is used by YouTube (or more accurately, Web Components Polyfills)
to polyfill templates.
This commit is contained in:
Luke 2021-07-05 05:20:31 +01:00 committed by Andreas Kling
parent 0ea50d44bf
commit f7ad8c0f94
6 changed files with 93 additions and 0 deletions

View file

@ -0,0 +1,6 @@
interface DOMParser {
constructor();
// FIXME: "type" should use the DOMParserSupportedType enum.
Document parseFromString(DOMString string, DOMString type);
};