diff --git a/index.html b/index.html index d86da6a..89c9fec 100644 --- a/index.html +++ b/index.html @@ -118,7 +118,7 @@
@@ -134,7 +134,7 @@And theExtensibility
HTMLDivElement
node is stored in a variable myDiv
,
then to serialize myDiv
's children simply get (read) the
- Element's innerHTML property (this triggers the serialization):
+ Element's innerHTML property (this triggers the serialization):
var serializedChildren = myDiv.innerHTML; @@ -143,7 +143,7 @@Extensibility
To parse new children for myDiv
from a string (replacing its existing
- children), simply set the innerHTML property (this triggers
+ children), simply set the innerHTML property (this triggers
parsing of the assigned string):
@@ -221,10 +221,10 @@Extensibility
The DOMParser
constructor must return a new DOMParser object.
The
- parseFromString(str, type)
+ parseFromString(str, type)
method must run these steps, depending on type:
text/html
"
+ text/html
"
HTML parser
, and return the newly created
Document.
@@ -250,10 +250,10 @@ script
elements get marked unexecutable and the contents of
noscript
get parsed as markup.
-
text/xml
"
- application/xml
"
- application/xhtml+xml
"
- image/svg+xml
"
+ text/xml
"
+ application/xml
"
+ application/xhtml+xml
"
+ image/svg+xml
"
XML parser
.
@@ -299,10 +299,10 @@ The XMLSerializer
() constructor must return a new XMLSerializer
object.
-
The serializeToString
(root) method must
+
The serializeToString
(root) method must
produce an XML serialization of root passing a value of false
for
the require well-formed parameter, and return the result.
@@ -328,11 +328,11 @@
The innerHTML
IDL attribute represents the markup of the
+
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. @@ -358,7 +358,7 @@
template
's template contents (a
DocumentFragment
).
- Setting innerHTML on a template element will replace +
Setting innerHTML on a template element will replace all the nodes in its template contents (template.content) rather than its children.
@@ -367,11 +367,11 @@The outerHTML
IDL attribute represents the markup of the
+
The outerHTML
IDL attribute represents the markup of the
Element
and its contents.
Can be set, to replace the element with nodes parsed from the given string. @@ -421,7 +421,7 @@
The
- insertAdjacentHTML(position, text)
+ insertAdjacentHTML(position, text)
method must run these steps:
No special handling for template
elements is included in the
above "afterbegin
" and "beforeend
" cases. As with other direct
- Node-manipulation APIs (and unlike innerHTML),
- insertAdjacentHTML does not include any special handling for
+ Node-manipulation APIs (and unlike innerHTML),
+ insertAdjacentHTML does not include any special handling for
template
elements. In most cases you will wish to use
- template.content.insertAdjacentHTML
+ template.content.insertAdjacentHTML
instead of directly manipulating the child nodes of a template
element.
DocumentFragment
, created from the markup string
fragment using range's start node as the context in which
fragment is parsed.
The createContextualFragment(fragment)
method
+
The createContextualFragment(fragment)
method
must run these steps:
Text
Comment
- DocumentType
ProcessingInstruction
@@ -617,20 +617,20 @@ Text
nodes have an additional associated flag, the
serialize as CDATA flag.
-
The serializeAsCDATA
attribute must return true if the
+
The serializeAsCDATA
attribute must return true if the
context object has its serialize as CDATA flag set, or false otherwise.
-
Setting the serializeAsCDATA attribute must, if the new value is true, set +
Setting the serializeAsCDATA attribute must, if the new value is true, set the context object's serialize as CDATA flag, or unset it otherwise. - +--> @@ -1848,8 +1848,8 @@
Special thanks to Ian Hickson for first defining the innerHTML and outerHTML - attributes, and the insertAdjacentHTML method in [[HTML5]] and his useful comments. +
Special thanks to Ian Hickson for first defining the innerHTML and outerHTML + attributes, and the insertAdjacentHTML method in [[HTML5]] and his useful comments.