diff --git a/index.html b/index.html index ab34e3d..7263b57 100644 --- a/index.html +++ b/index.html @@ -244,15 +244,15 @@ ] } ], - "publishISODate": "2024-04-19T00:00:00.000Z", - "generatedSubtitle": "W3C Editor's Draft 19 April 2024" + "publishISODate": "2024-04-24T00:00:00.000Z", + "generatedSubtitle": "W3C Editor's Draft 24 April 2024" }
The term context object means the object on which the API being discussed was +
The term context object means the object on which the API being discussed was called.
The following terms are understood to represent their respective namespaces in this @@ -562,73 +562,12 @@
Range
interfaceRange
interfaceWebIDLpartial interface Range
{
- [CEReactions, NewObject] DocumentFragment createContextualFragment
(HTMLString fragment);
-};
-
- createContextualFragment
( fragment )
- DocumentFragment
, created from the markup string
- fragment using range's start node as the context in which
- fragment is parsed.
- The createContextualFragment(fragment)
method
- must run these steps:
-
-
Let element be as follows, depending on node's interface: - -
Document
- DocumentFragment
- Element
- Text
- Comment
- DocumentType
- ProcessingInstruction
- html
", and
-
- let element be a new Element with - -
body
" as its local name,
-
- The definition of createContextualFragment
has moved to the HTML Standard.
namespaceURI
is preserved. In some cases this means that an existing
prefix
, prefix declaration attribute or default namespace declaration attribute
might be dropped, substituted or changed. An HTML serialization does not attempt to
preserve the namespaceURI
.
- Otherwise, the algorithm for producing an XML serialization is designed to produce a serialization that is compatible with the HTML parser. For example, elements in the - HTML namespace that contain no child nodes are serialized with an explicit begin and end + HTML namespace that contain no child nodes are serialized with an explicit begin and end tag rather than using the empty-element tag syntax.
Per [DOM4], Attr
objects do not inherit from Node, and
@@ -683,9 +622,9 @@
null
.
The context namespace tracks the XML serialization algorithm's current default
- namespace. The context namespace is changed when either an Element Node has
+ namespace. The context namespace is changed when either an Element Node has
a default namespace declaration, or the algorithm generates a default namespace declaration for
- the Element Node to match its own namespace. The algorithm assumes no namespace
+ the Element Node to match its own namespace. The algorithm assumes no namespace
(null
) to start.
Element
+ Element
Document
+ Document
Comment
+ Comment
Text
+ Text
DocumentFragment
+ DocumentFragment
DocumentType
+ DocumentType
ProcessingInstruction
+ ProcessingInstruction
Attr
object
@@ -760,7 +699,7 @@ prefix
in the
- namespace prefix map that might be locally-defined (to the current Element) and
+ namespace prefix map that might be locally-defined (to the current Element) and
one that is not.prefix
"xmlns
"
+ Element with prefix
"xmlns
"
will not legally round-trip in a conforming XML parser.
The following may serialize a different
- prefix
than the Element's existing
+ prefix
than the Element's existing
prefix
if it already had one. However, the
retrieving a preferred prefix string algorithm already tried to match the existing
prefix if possible.
localName
matches any
one of the following void elements:
"area
",
@@ -1018,7 +957,7 @@ true
.
- /
" (U+002F SOLIDUS) to markup
and set the skip end tag flag to true
.
@@ -1027,11 +966,11 @@ true
, then return the value of
markup and skip the remaining steps. The node is a leaf-node.
- localName
matches the string "template
", then this is a
template
element. Append to markup the result of
XML serializing a DocumentFragment node given the template element's
- template contents (a DocumentFragment
), providing
+ template contents (a DocumentFragment
), providing
inherited ns, map, prefix index, and the
require well-formed flag.
@@ -1062,7 +1001,7 @@ null
.
- When recording the namespace information for an Element
+
When recording the namespace information for an Element
element, given a namespace prefix map map and a
local prefixes map (initially empty), the user agent must run the following
steps:
@@ -1219,7 +1158,7 @@
The XML serialization of the attributes of an Element
+
The XML serialization of the attributes of an Element
element together with a namespace prefix map map, a
generated namespace prefix index prefix index reference, a
local prefixes map, a ignore namespace definition attribute flag, and a
@@ -1278,7 +1217,7 @@
null
and the
ignore namespace definition attribute flag is true
(the
- Element's default namespace attribute should be skipped);
+ Element's default namespace attribute should be skipped);
prefix
is not null
and either
If the require well-formed flag is set (its value is true
), and this
@@ -1437,10 +1376,10 @@
This will serialize any number of ProcessingInstruction and Comment - nodes both before and after the Document's documentElement node, including - at most one DocumentType node. (Text nodes are not allowed as children of the - Document.)
This will serialize any number of ProcessingInstruction and Comment + nodes both before and after the Document's documentElement node, including + at most one DocumentType node. (Text nodes are not allowed as children of the + Document.)
If the require well-formed flag is set (its value is true
), and
@@ -1468,7 +1407,7 @@
name
- attribute to markup. For a node belonging to an HTML document, the
+ attribute to markup. For a node belonging to an HTML document, the
value will be all lowercase.
publicId
is not the empty string then append
@@ -1586,7 +1525,7 @@ true
), and
@@ -1637,7 +1576,7 @@ Range
interface
+ Referenced in:
-Referenced in: