mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibWeb: Introduce CustomElementRegistry and creating custom elements
The main missing feature here is form associated custom elements.
This commit is contained in:
parent
083b547e97
commit
034aaf3f51
Notes:
sideshowbarker
2024-07-16 23:23:26 +09:00
Author: https://github.com/Lubrsi
Commit: 034aaf3f51
Pull-request: https://github.com/SerenityOS/serenity/pull/18092
38 changed files with 1747 additions and 143 deletions
|
@ -56,7 +56,7 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<Document>> DOMImplementation::create_docume
|
|||
JS::GCPtr<Element> element;
|
||||
|
||||
if (!qualified_name.is_empty())
|
||||
element = TRY(xml_document->create_element_ns(namespace_, qualified_name /* FIXME: and an empty dictionary */));
|
||||
element = TRY(xml_document->create_element_ns(namespace_, qualified_name, ElementCreationOptions {}));
|
||||
|
||||
if (doctype)
|
||||
TRY(xml_document->append_child(*doctype));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue