mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +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
Notes:
sideshowbarker
2024-07-17 18:31:21 +09:00
Author: https://github.com/Lubrsi
Commit: 10581cfaeb
Pull-request: https://github.com/SerenityOS/serenity/pull/12666
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