@@ -1041,7 +1041,7 @@ method, when invoked, must run these steps:
1041
1041
<p> The
1042
1042
<dfn method for=EventTarget><code>removeEventListener(<var>type</var>, <var>callback</var>, <var>capture</var>)</code></dfn>
1043
1043
method, when invoked, must, if there is an <a>event listener</a> in the associated list of
1044
- <a>event listeners</a> whose <b> type</b> is <var> name </var> , <b> callback</b> is <var> callback</var> ,
1044
+ <a>event listeners</a> whose <b> type</b> is <var> type </var> , <b> callback</b> is <var> callback</var> ,
1045
1045
and <b> capture</b> is <var> capture</var> , set that <a>event listener</a> 's <b> removed flag</b> and
1046
1046
remove it from the associated list of <a>event listeners</a> .
1047
1047
@@ -3963,7 +3963,7 @@ interface Document : Node {
3963
3963
Node adoptNode(Node node);
3964
3964
3965
3965
[NewObject] Attr createAttribute(DOMString localName);
3966
- [NewObject] Attr createAttributeNS(DOMString? namespace, DOMString name );
3966
+ [NewObject] Attr createAttributeNS(DOMString? namespace, DOMString qualifiedName );
3967
3967
3968
3968
[NewObject] Event createEvent(DOMString interface);
3969
3969
@@ -4623,14 +4623,15 @@ method, when invoked, must run these steps:
4623
4623
</ol>
4624
4624
4625
4625
The
4626
- <dfn method for="Document">createAttributeNS(<var>namespace</var>, <var>name </var>)</dfn>
4626
+ <dfn method for="Document"><code> createAttributeNS(<var>namespace</var>, <var>qualifiedName </var>)</code> </dfn>
4627
4627
method, when invoked, must run these steps:
4628
4628
4629
4629
<ol>
4630
- <li> Let <var> namespace</var> , <var> prefix</var> , and <var> localName</var> be the result of passing
4631
- <var> namespace</var> and <var> name</var> to <a>validate and extract</a> . Rethrow any exceptions.
4630
+ <li><p> Let <var> namespace</var> , <var> prefix</var> , and <var> localName</var> be the result of
4631
+ passing <var> namespace</var> and <var> qualifiedName</var> to <a>validate and extract</a> . Rethrow
4632
+ any exceptions.
4632
4633
4633
- <li> Return a new <a>attribute</a> whose <a for=Attr>namespace</a> is <var> namespace</var> ,
4634
+ <li><p> Return a new <a>attribute</a> whose <a for=Attr>namespace</a> is <var> namespace</var> ,
4634
4635
<a for=Attr>namespace prefix</a> is <var> prefix</var> , and <a for=Attr>local name</a> is
4635
4636
<var> localName</var> .
4636
4637
</ol>
@@ -5020,16 +5021,16 @@ interface Element : Node {
5020
5021
boolean hasAttributes();
5021
5022
[SameObject] readonly attribute NamedNodeMap attributes;
5022
5023
sequence<DOMString> getAttributeNames();
5023
- DOMString? getAttribute(DOMString name );
5024
+ DOMString? getAttribute(DOMString qualifiedName );
5024
5025
DOMString? getAttributeNS(DOMString? namespace, DOMString localName);
5025
- void setAttribute(DOMString name , DOMString value);
5026
- void setAttributeNS(DOMString? namespace, DOMString name , DOMString value);
5027
- void removeAttribute(DOMString name );
5026
+ void setAttribute(DOMString qualifiedName , DOMString value);
5027
+ void setAttributeNS(DOMString? namespace, DOMString qualifiedName , DOMString value);
5028
+ void removeAttribute(DOMString qualifiedName );
5028
5029
void removeAttributeNS(DOMString? namespace, DOMString localName);
5029
- boolean hasAttribute(DOMString name );
5030
+ boolean hasAttribute(DOMString qualifiedName );
5030
5031
boolean hasAttributeNS(DOMString? namespace, DOMString localName);
5031
5032
5032
- Attr? getAttributeNode(DOMString name );
5033
+ Attr? getAttributeNode(DOMString qualifiedName );
5033
5034
Attr? getAttributeNodeNS(DOMString? namespace, DOMString localName);
5034
5035
Attr? setAttributeNode(Attr attr);
5035
5036
Attr? setAttributeNodeNS(Attr attr);
@@ -5146,23 +5147,21 @@ run these steps:
5146
5147
5147
5148
<hr>
5148
5149
5149
- To <dfn export id=concept-element-attributes-get-by-name>get an attribute by name</dfn>
5150
- given a <var> name</var> and <a for="/">element</a>
5151
- <var> element</var> , run these steps:
5150
+ To <dfn export id=concept-element-attributes-get-by-name>get an attribute by name</dfn> given a
5151
+ <var> qualifiedName</var> and <a for="/">element</a> <var> element</var> , run these steps:
5152
5152
5153
5153
<ol>
5154
- <li> If <var> element</var> is in the <a>HTML namespace</a> and its
5155
- <a>node document</a> is an
5156
- <a>HTML document</a> , let <var> name</var> be
5157
- <a>converted to ASCII lowercase</a> .
5154
+ <li><p> If <var> element</var> is in the <a>HTML namespace</a> and its <a>node document</a> is an
5155
+ <a>HTML document</a> , let <var> qualifiedName</var> be <a>converted to ASCII lowercase</a> .
5158
5156
5159
- <li> Return the first <a>attribute</a> in <var> element</var> 's <a for=Element>attribute list</a>
5160
- whose <a for=Attr>qualified name</a> is <var> name </var> , and null otherwise.
5157
+ <li><p> Return the first <a>attribute</a> in <var> element</var> 's <a for=Element>attribute list</a>
5158
+ whose <a for=Attr>qualified name</a> is <var> qualifiedName </var> , and null otherwise.
5161
5159
</ol>
5162
5160
5163
- To <dfn export id=concept-element-attributes-get-by-namespace>get an attribute by namespace and local name</dfn>
5164
- given a <var> namespace</var> , <var> localName</var> , and
5165
- <a for="/">element</a> <var> element</var> , run these steps:
5161
+ To
5162
+ <dfn export id=concept-element-attributes-get-by-namespace>get an attribute by namespace and local name</dfn>
5163
+ given a <var> namespace</var> , <var> localName</var> , and <a for="/">element</a> <var> element</var> ,
5164
+ run these steps:
5166
5165
5167
5166
<ol>
5168
5167
<li> If <var> namespace</var> is the empty string, set it to null.
@@ -5229,19 +5228,17 @@ using a <var>localName</var> and <var>value</var>, and an optional <var>prefix</
5229
5228
5230
5229
To
5231
5230
<dfn export id=concept-element-attributes-remove-by-name>remove an attribute by name</dfn>
5232
- given a <var> name</var> and <a for="/">element</a>
5233
- <var> element</var> , run these steps:
5231
+ given a <var> qualifiedName</var> and <a for="/">element</a> <var> element</var> , run these steps:
5234
5232
5235
5233
<ol>
5236
- <li> Let <var> attr</var> be the result of
5234
+ <li><p> Let <var> attr</var> be the result of
5237
5235
<a lt="get an attribute by name">getting an attribute</a> given
5238
- <var> name </var> and <var> element</var> .
5236
+ <var> qualifiedName </var> and <var> element</var> .
5239
5237
5240
- <li> If <var> attr</var> is non-null,
5241
- <a lt="remove an attribute">remove</a> it from
5238
+ <li><p> If <var> attr</var> is non-null, <a lt="remove an attribute">remove</a> it from
5242
5239
<var> element</var> .
5243
5240
5244
- <li> Return <var> attr</var> .
5241
+ <li><p> Return <var> attr</var> .
5245
5242
</ol>
5246
5243
5247
5244
To
@@ -5425,15 +5422,17 @@ the <a for=Attr>qualified names</a> of the <a>attributes</a> in the <a>context o
5425
5422
<p class=note> These are not guaranteed to be unique.<!-- A theoretical getAttributeNamesNS() could
5426
5423
return an array of unique two-value-arrays. -->
5427
5424
5428
- The <dfn method for="Element">getAttribute(<var>name</var>)</dfn> method must run these steps:
5425
+ The <dfn method for="Element"><code>getAttribute(<var>qualifiedName</var>)</code></dfn> method, when
5426
+ invoked, must run these steps:
5427
+
5429
5428
<ol>
5430
- <li> Let <var> attr</var> be the result of
5431
- <a lt="get an attribute by name">getting an attribute</a> given
5432
- <var> name </var> and the < a>context object</a> .
5429
+ <li><p> Let <var> attr</var> be the result of
5430
+ <a lt="get an attribute by name">getting an attribute</a> given <var> qualifiedName </var> and the
5431
+ <a>context object</a> .
5433
5432
5434
- <li> If <var> attr</var> is null, return null.
5433
+ <li><p> If <var> attr</var> is null, return null.
5435
5434
5436
- <li> Return <var> attr</var> 's <a for=Attr>value</a> .
5435
+ <li><p> Return <var> attr</var> 's <a for=Attr>value</a> .
5437
5436
</ol>
5438
5437
5439
5438
The
@@ -5451,57 +5450,48 @@ method must run the following steps:
5451
5450
<li> Return <var> attr</var> 's <a for=Attr>value</a> .
5452
5451
</ol>
5453
5452
5454
- The <dfn method for="Element"><code>setAttribute(<var>name</var>, <var>value</var>)</code></dfn>
5455
- method must run these steps:
5453
+ The
5454
+ <dfn method for="Element"><code>setAttribute(<var>qualifiedName</var>, <var>value</var>)</code></dfn>
5455
+ method, when invoked, must run these steps:
5456
5456
5457
5457
<ol>
5458
- <li> If <var> name</var> does not match the
5459
- <code> <a type>Name</a> </code> production in XML,
5460
- <a>throw</a> an
5461
- {{InvalidCharacterError}} exception.
5458
+ <li><p> If <var> qualifiedName</var> does not match the <code> <a type>Name</a> </code> production in
5459
+ XML, <a>throw</a> an {{InvalidCharacterError}} exception.
5462
5460
5463
- <li> If the <a>context object</a> is in the <a>HTML namespace</a> and its
5464
- <a>node document</a> is an <a>HTML document</a> , let <var> name</var> be
5465
- <a>converted to ASCII lowercase</a> .
5461
+ <li><p> If the <a>context object</a> is in the <a>HTML namespace</a> and its <a>node document</a> is
5462
+ an <a>HTML document</a> , let <var> qualifiedName</var> be <a>converted to ASCII lowercase</a> .
5466
5463
5467
- <li> Let <var> attribute</var> be the first <a>attribute</a> in <a>context object</a> 's
5468
- <a for=Element>attribute list</a> whose <a for=Attr>qualified name</a> is <var> name </var> , and null
5469
- otherwise.
5464
+ <li><p> Let <var> attribute</var> be the first <a>attribute</a> in <a>context object</a> 's
5465
+ <a for=Element>attribute list</a> whose <a for=Attr>qualified name</a> is <var> qualifiedName </var> ,
5466
+ and null otherwise.
5470
5467
<!-- This is step 2 of "get an attribute by name", modified as appropriate -->
5471
5468
5472
- <li> If <var> attribute</var> is null, create an
5473
- <a>attribute</a> whose
5474
- <a for="Attr">local name</a> is <var> name</var> and
5475
- <a for=Attr>value</a> is <var> value</var> ,
5476
- <a lt="append an attribute">append</a> this
5477
- <a>attribute</a> to the <a>context object</a> 's
5478
- <a for=Element>attribute list</a> , and then terminate these
5479
- steps.
5469
+ <li><p> If <var> attribute</var> is null, create an <a>attribute</a> whose
5470
+ <a for="Attr">local name</a> is <var> qualifiedName</var> and <a for=Attr>value</a> is
5471
+ <var> value</var> , <a lt="append an attribute">append</a> this <a>attribute</a> to the
5472
+ <a>context object</a> 's <a for=Element>attribute list</a> , and then terminate these steps.
5480
5473
5481
- <li> <a lt="change an attribute">Change</a>
5482
- <var> attribute</var> from <a>context object</a> to
5474
+ <li><p> <a lt="change an attribute">Change</a> <var> attribute</var> from <a>context object</a> to
5483
5475
<var> value</var> .
5484
5476
</ol>
5485
5477
5486
5478
The
5487
- <dfn method for="Element">setAttributeNS(<var>namespace</var>, <var>name </var>, <var>value</var>)</dfn>
5488
- method must run these steps:
5479
+ <dfn method for="Element"><code> setAttributeNS(<var>namespace</var>, <var>qualifiedName </var>, <var>value</var>)</code> </dfn>
5480
+ method, when invoked, must run these steps:
5489
5481
5490
5482
<ol>
5491
- <li> Let <var> namespace</var> , <var> prefix</var> , and <var> localName</var> be the result of passing
5492
- <var> namespace</var> and <var> name</var> to <a>validate and extract</a> . Rethrow any exceptions.
5483
+ <li><p> Let <var> namespace</var> , <var> prefix</var> , and <var> localName</var> be the result of
5484
+ passing <var> namespace</var> and <var> qualifiedName</var> to <a>validate and extract</a> . Rethrow
5485
+ any exceptions.
5493
5486
5494
- <li> <a>Set an attribute value</a>
5495
- for the <a>context object</a> using
5496
- <var> localName</var> , <var> value</var> , and also
5497
- <var> prefix</var> and <var> namespace</var> .
5487
+ <li><p> <a>Set an attribute value</a> for the <a>context object</a> using <var> localName</var> ,
5488
+ <var> value</var> , and also <var> prefix</var> and <var> namespace</var> .
5498
5489
</ol>
5499
5490
5500
5491
The
5501
- <dfn method for="Element">removeAttribute(<var>name</var>)</dfn>
5502
- method must
5503
- <a lt="remove an attribute by name">remove an attribute</a> given
5504
- <var> name</var> and the <a>context object</a> , and then return undefined.
5492
+ <dfn method for="Element"><code>removeAttribute(<var>qualifiedName</var>)</code></dfn>
5493
+ method, when invoked, must <a lt="remove an attribute by name">remove an attribute</a> given
5494
+ <var> qualifiedName</var> and the <a>context object</a> , and then return undefined.
5505
5495
5506
5496
The
5507
5497
<dfn method for="Element">removeAttributeNS(<var>namespace</var>, <var>localName</var>)</dfn>
@@ -5510,20 +5500,21 @@ method must
5510
5500
given <var> namespace</var> , <var> localName</var> , and the
5511
5501
<a>context object</a> , and then return undefined.
5512
5502
5513
- <p> The <dfn method for="Element"><code>hasAttribute(<var>name </var>)</code></dfn> method, when
5514
- invoked, must run these steps:
5503
+ <p> The <dfn method for="Element"><code>hasAttribute(<var>qualifiedName </var>)</code></dfn> method,
5504
+ when invoked, must run these steps:
5515
5505
5516
5506
<ol>
5517
5507
<li><p> If the <a>context object</a> is in the <a>HTML namespace</a> and its <a>node document</a> is
5518
- an <a>HTML document</a> , let <var> name </var> be <a>converted to ASCII lowercase</a> .
5508
+ an <a>HTML document</a> , let <var> qualifiedName </var> be <a>converted to ASCII lowercase</a> .
5519
5509
5520
5510
<li><p> Return true if the <a>context object</a> <a lt="has an attribute">has</a> an
5521
- <a>attribute</a> whose <a for=Attr>qualified name</a> is <var> name</var> , and false otherwise.
5511
+ <a>attribute</a> whose <a for=Attr>qualified name</a> is <var> qualifiedName</var> , and false
5512
+ otherwise.
5522
5513
</ol>
5523
5514
5524
5515
The
5525
- <dfn method for="Element">hasAttributeNS(<var>namespace</var>, <var>localName</var>)</dfn>
5526
- method must run these steps:
5516
+ <dfn method for="Element"><code> hasAttributeNS(<var>namespace</var>, <var>localName</var>)</code> </dfn>
5517
+ method, when invoked, must run these steps:
5527
5518
5528
5519
<ol>
5529
5520
<li> If <var> namespace</var> is the empty string, set it to null.
@@ -5539,13 +5530,13 @@ method must run these steps:
5539
5530
<hr>
5540
5531
5541
5532
The
5542
- <dfn method for="Element">getAttributeNode(<var>name </var>)</dfn>
5533
+ <dfn method for="Element"><code> getAttributeNode(<var>qualifiedName </var>)</code> </dfn>
5543
5534
method, when invoked, must return the result of
5544
5535
<a lt="get an attribute by name">getting an attribute</a> given
5545
- <var> name </var> and the <a>context object</a> .
5536
+ <var> qualifiedName </var> and the <a>context object</a> .
5546
5537
5547
5538
The
5548
- <dfn method for="Element">getAttributeNodeNS(<var>namespace</var>, <var>localName</var>)</dfn>
5539
+ <dfn method for="Element"><code> getAttributeNodeNS(<var>namespace</var>, <var>localName</var>)</code> </dfn>
5549
5540
method, when invoked, must return the result of
5550
5541
<a lt="get an attribute by namespace and local name">getting an attribute</a> given
5551
5542
<var> namespace</var> , <var> localName</var> , and the <a>context object</a> .
@@ -5556,7 +5547,7 @@ invoked, must return the result of <a lt="set an attribute">setting an attribute
5556
5547
<var> attr</var> and the <a>context object</a> . Rethrow any exceptions.
5557
5548
5558
5549
The
5559
- <dfn method for="Element">removeAttributeNode(<var>attr</var>)</dfn>
5550
+ <dfn method for="Element"><code> removeAttributeNode(<var>attr</var>)</code> </dfn>
5560
5551
method, when invoked, must run these steps:
5561
5552
5562
5553
<ol>
@@ -5656,11 +5647,11 @@ for the <a>context object</a>.
5656
5647
interface NamedNodeMap {
5657
5648
readonly attribute unsigned long length;
5658
5649
getter Attr? item(unsigned long index);
5659
- getter Attr? getNamedItem(DOMString name );
5650
+ getter Attr? getNamedItem(DOMString qualifiedName );
5660
5651
Attr? getNamedItemNS(DOMString? namespace, DOMString localName);
5661
5652
Attr? setNamedItem(Attr attr);
5662
5653
Attr? setNamedItemNS(Attr attr);
5663
- Attr removeNamedItem(DOMString name );
5654
+ Attr removeNamedItem(DOMString qualifiedName );
5664
5655
Attr removeNamedItemNS(DOMString? namespace, DOMString localName);
5665
5656
};
5666
5657
</pre>
@@ -5705,11 +5696,10 @@ when invoked, must run these steps:
5705
5696
<a for=Attr>qualified names</a> of the <a>attributes</a> in the
5706
5697
<a for=NamedNodeMap>attribute list</a> , in order.
5707
5698
5708
- The
5709
- <dfn method for="NamedNodeMap">getNamedItem(<var>name</var>)</dfn>
5699
+ The <dfn method for="NamedNodeMap"><code>getNamedItem(<var>qualifiedName</var>)</code></dfn>
5710
5700
method, when invoked, must return the result of
5711
- <a lt="get an attribute by name">getting an attribute</a> given
5712
- <var> name </var> and < a for=NamedNodeMap>element</a> .
5701
+ <a lt="get an attribute by name">getting an attribute</a> given <var> qualifiedName </var> and
5702
+ <a for=NamedNodeMap>element</a> .
5713
5703
5714
5704
The
5715
5705
<dfn method for="NamedNodeMap">getNamedItemNS(<var>namespace</var>, <var>localName</var>)</dfn>
@@ -5722,19 +5712,18 @@ The <dfn method for="NamedNodeMap"><code>setNamedItem(<var>attr</var>)</code></d
5722
5712
<dfn method for="NamedNodeMap"><code>setNamedItemNS(<var>attr</var>)</code></dfn>
5723
5713
methods, when invoked, must return the result of <a lt="set an attribute">setting an attribute</a> given <var> attr</var> and <a for=NamedNodeMap>element</a> . Rethrow any exceptions.
5724
5714
5725
- The
5726
- <dfn method for="NamedNodeMap">removeNamedItem(<var>name</var>)</dfn>
5715
+ The <dfn method for="NamedNodeMap"><code>removeNamedItem(<var>qualifiedName</var>)</code></dfn>
5727
5716
method, when invoked, must run these steps:
5728
5717
5729
5718
<ol>
5730
- <li> Let <var> attr</var> be the result of
5719
+ <li><p> Let <var> attr</var> be the result of
5731
5720
<a lt="remove an attribute by name">removing an attribute</a> given
5732
- <var> name </var> and <a for=NamedNodeMap>element</a> .
5721
+ <var> qualifiedName </var> and <a for=NamedNodeMap>element</a> .
5733
5722
5734
- <li> If <var> attr</var> is null, <a>throw</a> a
5723
+ <li><p> If <var> attr</var> is null, <a>throw</a> a
5735
5724
{{NotFoundError}} exception.
5736
5725
5737
- <li> Return <var> attr</var> .
5726
+ <li><p> Return <var> attr</var> .
5738
5727
</ol>
5739
5728
5740
5729
The
0 commit comments