mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +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
|
@ -74,8 +74,8 @@ interface Document : Node {
|
|||
// FIXME: Should return an HTMLAllCollection
|
||||
readonly attribute HTMLCollection all;
|
||||
|
||||
Element createElement(DOMString tagName);
|
||||
Element createElementNS(DOMString? namespace, DOMString qualifiedName);
|
||||
Element createElement(DOMString tagName, optional (DOMString or ElementCreationOptions) options = {});
|
||||
Element createElementNS(DOMString? namespace, DOMString qualifiedName, optional (DOMString or ElementCreationOptions) options = {});
|
||||
DocumentFragment createDocumentFragment();
|
||||
Text createTextNode(DOMString data);
|
||||
Comment createComment(DOMString data);
|
||||
|
@ -114,5 +114,8 @@ interface Document : Node {
|
|||
Selection? getSelection();
|
||||
};
|
||||
|
||||
dictionary ElementCreationOptions {
|
||||
DOMString is;
|
||||
};
|
||||
Document includes ParentNode;
|
||||
Document includes GlobalEventHandlers;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue