1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 10:57:35 +00:00

LibWeb: Make Document.createElement() lowercase HTML local names

Bring createElement() a little bit closer to spec-compliance.
This commit is contained in:
Andreas Kling 2022-09-17 14:58:39 +02:00
parent 03c468fb7d
commit 9e274d9501
2 changed files with 20 additions and 6 deletions

View file

@ -191,7 +191,7 @@ public:
JS::Value run_javascript(StringView source, StringView filename = "(unknown)"sv);
ExceptionOr<JS::NonnullGCPtr<Element>> create_element(String const& tag_name);
ExceptionOr<JS::NonnullGCPtr<Element>> create_element(FlyString const& local_name);
ExceptionOr<JS::NonnullGCPtr<Element>> create_element_ns(String const& namespace_, String const& qualified_name);
JS::NonnullGCPtr<DocumentFragment> create_document_fragment();
JS::NonnullGCPtr<Text> create_text_node(String const& data);