From 6b06d0be1b3130f590ad0f49f32603974069ad60 Mon Sep 17 00:00:00 2001
From: Anne van Kesteren The The If index is equal to or greater than the number of attributes in the
attribute list, return null.
- Otherwise, return the indexth attribute in the
attribute list.
Return names.
-The The The
+ The The Return attr.
The
+ Let attr be the result of
+ removing an attribute given
+ namespace, localName, and element.
- If attr is null, throw a {{NotFoundError}} exception.
- Return attr.
The The The The The
+ The The
+ The
+ The
+length
attribute's getter must return
+the number of attributes in the attribute list.
-The
-item(index) method,
-when invoked, must run these steps:
+item(index)
method, when
+invoked, must run these steps:
-
@@ -6049,23 +6045,23 @@ steps:
getNamedItem(qualifiedName)
+getNamedItem(qualifiedName)
method, when invoked, must return the result of
getting an attribute given qualifiedName and
element.
-The
-getNamedItemNS(namespace, localName)
+getNamedItemNS(namespace, localName)
method, when invoked, must return the result of
getting an attribute given
namespace, localName, and
element.
-The setNamedItem(attr)
and
+setNamedItem(attr)
and
setNamedItemNS(attr)
methods, when invoked, must return the result of setting an attribute given attr and element. Rethrow any exceptions.
-The removeNamedItem(qualifiedName)
+removeNamedItem(qualifiedName)
method, when invoked, must run these steps:
@@ -6079,20 +6075,18 @@ method, when invoked, must run these steps:
-The
-removeNamedItemNS(namespace, localName)
+removeNamedItemNS(namespace, localName)
method, when invoked, must run these steps:
-
@@ -6194,13 +6188,12 @@ handling is required.
-The ownerElement attribute's getter
-must return the element.
+ownerElement
attribute's getter must return
+context object's element.
-The specified attribute's getter must
-return true.
+specified
attribute's getter must return true.
Interface {{CharacterData}}
@@ -6353,48 +6346,36 @@ To data.
-The data attribute
-must return data, and on setting, must
-replace data with node
-context object offset 0, count
-{{CharacterData/length}} attribute value, and data
-new value.
+data
attribute's getter must return
+context object's data. Its setter must replace data with node
+context object offset 0, count {{CharacterData/length}} attribute value, and data new value.
-The length
-attribute must return the number of
-code units in
-data.
+length
attribute's getter must return
+the number of code units in context object's data.
-The
-substringData(offset, count)
-method must substring data with node
-context object, offset offset, and count
-count.
+substringData(offset, count)
+method, when invoked, must return the result of running substring data with node
+context object, offset offset, and count count.
-The
-appendData(data)
-method must replace data with node
-context object, offset
-{{CharacterData/length}} attribute value, count 0,
-and data data.
+appendData(data)
method, when
+invoked, must replace data with node context object, offset {{CharacterData/length}}
+attribute value, count 0, and data data.
-The
-insertData(offset, data)
-method must replace data with node
-context object, offset offset, count 0, and
-data data.
+insertData(offset, data)
+method, when invoked, must replace data with node context object, offset
+offset, count 0, and data data.
-The
-deleteData(offset, count)
-method must replace data with node
-context object, offset offset, count
-count, and data the empty string.
+deleteData(offset, count)
+method, when invoked, must replace data with node context object, offset
+offset, count count, and data the empty string.
-The
-replaceData(offset, count, data)
-method must replace data with node
-context object, offset offset, count
-count, and data data.
+replaceData(offset, count, data)
+method, when invoked, must replace data with node context object, offset
+offset, count count, and data data.
Interface {{Text}}
diff --git a/dom.html b/dom.html
index df68f505e..f1be56fd8 100644
--- a/dom.html
+++ b/dom.html
@@ -3301,13 +3301,15 @@ A
NamedNodeMap
object’s supported property indices are the numbers in the
range zero to the number of attributes in its attribute list map minus one, unless the attribute list is empty, in which case
there are no supported property indices.
The length attribute’s getter -must return the number of attributes in the attribute list.
-The item(index) method, -when invoked, must run these steps:
+The length
attribute’s getter must return
+the number of attributes in the attribute list.
The item(index)
method, when
+invoked, must run these steps:
If index is equal to or greater than the number of attributes in the attribute list, return null.
+Otherwise, return the indexth attribute in the attribute list.
A NamedNodeMap
object’s supported property names are the return value of running these
steps:
Return names.
-The getNamedItem(qualifiedName)
method, when invoked, must return the result of getting an attribute given qualifiedName and element.
The getNamedItemNS(namespace, localName) method, when invoked, must return the result of getting an attribute given namespace, localName, and element.
-The setNamedItem(attr)
and setNamedItemNS(attr)
methods, when invoked, must return the result of setting an attribute given attr and element. Rethrow any exceptions.
The removeNamedItem(qualifiedName)
method, when invoked, must run these steps:
The getNamedItem(qualifiedName)
method, when invoked, must return the result of getting an attribute given qualifiedName and element.
The getNamedItemNS(namespace, localName)
method, when invoked, must return the result of getting an attribute given namespace, localName, and element.
The setNamedItem(attr)
and setNamedItemNS(attr)
methods, when invoked, must return the result of setting an attribute given attr and element. Rethrow any exceptions.
The removeNamedItem(qualifiedName)
method, when invoked, must run these steps:
Let attr be the result of removing an attribute given qualifiedName and element.
@@ -3338,11 +3340,14 @@Return attr.
The removeNamedItemNS(namespace, localName) method, when invoked, must run these steps:
+The removeNamedItemNS(namespace, localName)
method, when invoked, must run these steps:
NotFoundError
exception.
- Let attr be the result of removing an attribute given namespace, localName, and element.
+If attr is null, throw a NotFoundError
exception.
Return attr.
Attr
[Exposed=Window] @@ -3386,11 +3391,9 @@Unlike node’s
textContent
, no special null handling is required.
-The ownerElement attribute’s getter -must return the element.
+The
ownerElement
attribute’s getter must return context object’s element.
-The specified attribute’s getter must -return true.
+The
specified
attribute’s getter must return true.4.10. Interface
CharacterData
[Exposed=Window] interface CharacterData : Node { @@ -3432,17 +3435,15 @@Return a string whose value is the code units from the offsetth code unit to the offset+countth code unit in node’s data. -
The data attribute -must return data, and on setting, must replace data with node context object offset 0, count
-length
attribute value, and data -new value.The length attribute must return the number of code units in data.
-The substringData(offset, count) method must substring data with node context object, offset offset, and count count.
-The appendData(data) method must replace data with node context object, offset
-length
attribute value, count 0, -and data data.The insertData(offset, data) method must replace data with node context object, offset offset, count 0, and -data data.
-The deleteData(offset, count) method must replace data with node context object, offset offset, count count, and data the empty string.
-The replaceData(offset, count, data) method must replace data with node context object, offset offset, count count, and data data.
+The
+data
attribute’s getter must return context object’s data. Its setter must replace data with node context object offset 0, countlength
attribute value, and data new value.The
+length
attribute’s getter must return +the number of code units in context object’s data.The
+substringData(offset, count)
method, when invoked, must return the result of running substring data with node context object, offset offset, and count count.The
+appendData(data)
method, when +invoked, must replace data with node context object, offsetlength
attribute value, count 0, and data data.The
+insertData(offset, data)
method, when invoked, must replace data with node context object, offset offset, count 0, and data data.The
+deleteData(offset, count)
method, when invoked, must replace data with node context object, offset offset, count count, and data the empty string.The
replaceData(offset, count, data)
method, when invoked, must replace data with node context object, offset offset, count count, and data data.4.11. Interface
Text
[Constructor(optional DOMString data = ""), Exposed=Window]