diff --git a/dom.bs b/dom.bs index 69b5dbd97..cd0736b6b 100644 --- a/dom.bs +++ b/dom.bs @@ -4913,47 +4913,6 @@ returns true) so that old pages don't stop working. -
-[Constructor, - Exposed=Window] -interface DocumentFragment : Node { -}; -- -A {{DocumentFragment}} node can have an -associated element named -host. - -An object A is a -host-including inclusive ancestor -of an object B, if either A is an -inclusive ancestor of -B, or if B's root -has an associated host and -A is a -host-including inclusive ancestor -of B's root's -host. - -
The {{DocumentFragment}} node's -host concept is useful for HTML's <{template}> element and the -{{ShadowRoot}} object and impacts the pre-insert and replace algorithms. - - - -
tree = new {{DocumentFragment()}}
- @@ -4965,31 +4924,59 @@ interface DocumentType : Node { };-{{DocumentType}} nodes are -simply known as doctypes. +
{{DocumentType}} nodes are simply known as +doctypes. -Doctypes have an associated +
Doctypes have an associated name, public ID, and system ID. -When a doctype is created, its -name is always given. Unless -explicitly given when a doctype is -created, its public ID and -system ID are the empty string. +
When a doctype is created, its name is always given. Unless +explicitly given when a doctype is created, its public ID and system ID are the +empty string. -The name attribute -must return the name. +
The name
attribute's getter must return the
+context object's name.
-The publicId
-attribute must return the
-public ID.
+
The publicId
attribute's getter must return
+the context object's public ID.
-The systemId
-attribute must return the
-system ID.
+
The systemId
attribute's getter must return
+the context object's system ID.
+
+
+
+[Constructor, + Exposed=Window] +interface DocumentFragment : Node { +}; ++
A {{DocumentFragment}} node can have an associated element named +host. + +
An object A is a +host-including inclusive ancestor +of an object B, if either A is an inclusive ancestor of B, +or if B's root has an associated host and +A is a host-including inclusive ancestor of B's root's +host. + +
The {{DocumentFragment}} node's host +concept is useful for HTML's <{template}> element and for shadow roots, and impacts the +pre-insert and replace algorithms. + +
tree = new {{DocumentFragment()}}
+ The DocumentFragment()
constructor, when
+invoked, must return a new {{DocumentFragment}} node whose node document is the
+global object's associated document.
DocumentFragment
- DocumentType
+ DocumentType
+ DocumentFragment
Element
DocumentFragment
DocumentType
[Exposed=Window] +interface DocumentType : Node { + readonly attribute DOMString name; + readonly attribute DOMString publicId; + readonly attribute DOMString systemId; +}; ++
DocumentType
nodes are simply known as doctypes.
Doctypes have an associated name, public ID, and system ID.
+When a doctype is created, its name is always given. Unless +explicitly given when a doctype is created, its public ID and system ID are the +empty string.
+The name
attribute’s getter must return the context object’s name.
The publicId
attribute’s getter must return
+the context object’s public ID.
The systemId
attribute’s getter must return
+the context object’s system ID.
DocumentFragment
[Constructor, Exposed=Window] interface DocumentFragment : Node { };-
A DocumentFragment
node can have an
-associated element named host.
An object A is a host-including inclusive ancestor of an object B, if either A is an inclusive ancestor of B, or if B’s root has an associated host and A is a host-including inclusive ancestor of B’s root’s host.
-The DocumentFragment
node’s host concept is useful for HTML’s template
element and the ShadowRoot
object and impacts the pre-insert and replace algorithms.
A DocumentFragment
node can have an associated element named host.
An object A is a host-including inclusive ancestor of an object B, if either A is an inclusive ancestor of B, +or if B’s root has an associated host and A is a host-including inclusive ancestor of B’s root’s host.
+The DocumentFragment
node’s host concept is useful for HTML’s template
element and for shadow roots, and impacts the pre-insert and replace algorithms.
tree = new DocumentFragment()
DocumentFragment
node.
The DocumentFragment() constructor
-must return a new DocumentFragment
node whose node document is the global object’s associated document.
DocumentType
[Exposed=Window] -interface DocumentType : Node { - readonly attribute DOMString name; - readonly attribute DOMString publicId; - readonly attribute DOMString systemId; -}; --
DocumentType
nodes are
-simply known as doctypes.
Doctypes have an associated name, public ID, and system ID.
-When a doctype is created, its name is always given. Unless -explicitly given when a doctype is -created, its public ID and system ID are the empty string.
-The name attribute -must return the name.
-The publicId attribute must return the public ID.
-The systemId attribute must return the system ID.
+The DocumentFragment()
constructor, when
+invoked, must return a new DocumentFragment
node whose node document is the
+global object’s associated document.
Element
[Exposed=Window] interface Element : Node { @@ -4845,15 +4846,15 @@attribute for Document, in §4.5 -
definition of, in §4.7 + definition of, in §4.6 Document(), in §4.5 Document, in §4.5 document, in §4.5 documentElement, in §4.5 document element, in §4.8 - DocumentFragment, in §4.6 - DocumentFragment(), in §4.6 + DocumentFragment, in §4.7 + DocumentFragment(), in §4.7 DOCUMENT_FRAGMENT_NODE, in §4.4 DOCUMENT_NODE, in §4.4 DOCUMENT_POSITION_CONTAINED_BY, in §4.4 @@ -4862,7 +4863,7 @@ DOCUMENT_POSITION_FOLLOWING, in §4.4
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, in §4.4 DOCUMENT_POSITION_PRECEDING, in §4.4 - DocumentType, in §4.7 + DocumentType, in §4.6 DOCUMENT_TYPE_NODE, in §4.4 documentURI, in §4.5 domConfig, in §8.2 @@ -4985,8 +4986,8 @@ hasChildNodes(), in §4.4
hasFeature(), in §4.5.1 - host, in §4.6 - host-including inclusive ancestor, in §4.6 + host, in §4.7 + host-including inclusive ancestor, in §4.7 HTMLCollection, in §4.2.7.2 HTML document, in §4.5 HTML namespace, in §2.5 @@ -5092,8 +5093,8 @@ dfn for DocumentType, in §4.7 -
attribute for DocumentType, in §4.7 + dfn for DocumentType, in §4.6 + attribute for DocumentType, in §4.6 attribute for Attr, in §4.8.2 named attribute, in §4.8.2 @@ -5216,8 +5217,8 @@ ProcessingInstruction, in §4.11
PROCESSING_INSTRUCTION_NODE, in §4.4 - publicId, in §4.7 - public ID, in §4.7 + publicId, in §4.6 + public ID, in §4.6 qualified name @@ -5363,8 +5364,8 @@
supported tokens, in §7.1
- supports(token), in §7.1
- surroundContents(newParent), in §5.2 -
- system ID, in §4.7 -
- systemId, in §4.7 +
- system ID, in §4.6 +
- systemId, in §4.6
- tagName, in §4.8
- takeRecords(), in §4.3.1
- @@ -5801,11 +5802,6 @@
I boolean hasFeature(); // useless; always returns true }; -[Constructor, - Exposed=Window] -interface DocumentFragment : Node { -}; - [Exposed=Window] interface DocumentType : Node { readonly attribute DOMString name; @@ -5813,6 +5809,11 @@
I readonly attribute DOMString systemId; }; +[Constructor, + Exposed=Window] +interface DocumentFragment : Node { +}; + [Exposed=Window] interface Element : Node { readonly attribute DOMString? namespaceURI;