mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Support is
option when creating elements
This commit is contained in:
parent
6697f5469d
commit
2f36d3544f
9 changed files with 66 additions and 25 deletions
|
@ -33,9 +33,9 @@ interface Document : Node {
|
|||
HTMLCollection getElementsByClassName(DOMString classNames);
|
||||
|
||||
[NewObject, Throws]
|
||||
Element createElement(DOMString localName);
|
||||
Element createElement(DOMString localName, optional ElementCreationOptions options);
|
||||
[NewObject, Throws]
|
||||
Element createElementNS(DOMString? namespace, DOMString qualifiedName);
|
||||
Element createElementNS(DOMString? namespace, DOMString qualifiedName, optional ElementCreationOptions options);
|
||||
[NewObject]
|
||||
DocumentFragment createDocumentFragment();
|
||||
[NewObject]
|
||||
|
@ -75,6 +75,10 @@ Document implements ParentNode;
|
|||
|
||||
enum DocumentReadyState { "loading", "interactive", "complete" };
|
||||
|
||||
dictionary ElementCreationOptions {
|
||||
DOMString is;
|
||||
};
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#the-document-object
|
||||
// [OverrideBuiltins]
|
||||
partial /*sealed*/ interface Document {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue