mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:48:14 +00:00
LibWeb: Use DOMParserSupportedType enum for DOMParser.parseFromString
Previously it would accept any DOMString, as we didn't support enums at the time. Now it will only accept what's specified in the DOMParserSupportedType enum. This also adds spec comments to DOMParser::parse_from_string.
This commit is contained in:
parent
a65e1fa828
commit
10581cfaeb
4 changed files with 36 additions and 9 deletions
|
@ -30,7 +30,7 @@ public:
|
|||
|
||||
virtual ~DOMParser() override;
|
||||
|
||||
NonnullRefPtr<DOM::Document> parse_from_string(String const&, String const&);
|
||||
NonnullRefPtr<DOM::Document> parse_from_string(String const&, Bindings::DOMParserSupportedType type);
|
||||
|
||||
private:
|
||||
DOMParser();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue