diff --git a/index.html b/index.html index 5fb1b5c..9d8fffe 100644 --- a/index.html +++ b/index.html @@ -246,58 +246,11 @@
InnerHTML
mixin- interface mixin InnerHTML { - [CEReactions] attribute [LegacyNullToEmptyString] HTMLString innerHTML; - }; - - Element includes InnerHTML; - ShadowRoot includes InnerHTML; -- - - -
The innerHTML
IDL attribute represents the markup of the
- element's contents.
-
-
Can be set, to replace the contents of the element with nodes parsed from the given string. - -
In the case of an XML document, throws a "InvalidStateError
"
- DOMException
if the element cannot be serialized to XML,
- or a "SyntaxError
" DOMException
if the given string is
- not well-formed.
-
On getting, return the result of invoking the fragment serializing algorithm on the
- context object providing true
for the require well-formed flag (this
- might throw an exception instead of returning a string).
-
-
On setting, these steps must be run: - -
template
element, then let
- context object be the template
's template contents (a
- DocumentFragment
).
-
- Setting innerHTML on a template element will replace - all the nodes in its template contents - (template.content) rather than its children.
- -The definition of InnerHTML
has moved to the HTML Standard.
The following steps form the fragment parsing algorithm, whose arguments are a - markup string and a context element: - -
If the context element's node document is an XML document: let - algorithm be the XML fragment parsing algorithm. - -
DocumentFragment
whose
- node document is context element's node document.
-
- This ensures the node document for the new nodes is correct.
- -The definition of fragment parsing algorithm
has moved to the HTML Standard.
The following steps form the fragment serializing algorithm, whose arguments are a
- Node
node and a flag require well-formed:
-
-
The XML serialization defined in this document conforms to the requirements - of the XML fragment serialization algorithm defined in [[HTML5]].
-To produce an HTML serialization of a Node
node, the
- user agent must run the HTML fragment serialization algorithm on node and return
- the string produced.
+
The definition of fragment serializing algorithm
has moved to the HTML Standard.
An XML serialization differs from an HTML serialization in the following ways: +
An XML serialization differs from an HTML serialization in the following ways:
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
+ might be dropped, substituted or changed. An HTML serialization does not attempt to
preserve the namespaceURI
.
To produce an XML serialization of a Node
node given
- a flag require well-formed, run the following steps:
+ a flag require well-formed, run the following steps:
null
.
@@ -1657,15 +1573,11 @@