@@ -1488,7 +1488,7 @@ can be used to explore this matter in more detail.
1488
1488
1489
1489
<h3 id=node-trees>Node tree</h3>
1490
1490
1491
- <p> {{Document}} , {{DocumentType}} , {{DocumentFragment}} , {{Element}} , {{Text}} ,
1491
+ <p> {{Document}} , {{DocumentType}} , {{DocumentFragment}} , {{Element}} , {{Text}} , {{CDATASection}} ,
1492
1492
{{ProcessingInstruction}} , and {{Comment}} objects (simply called
1493
1493
<dfn export id=concept-node>nodes</dfn> ) <a>participate</a> in a <a>tree</a> , simply named the
1494
1494
<dfn export id=concept-node-tree>node tree</dfn> .
@@ -1509,10 +1509,11 @@ can be used to explore this matter in more detail.
1509
1509
</ol>
1510
1510
<dt> {{DocumentFragment}}
1511
1511
<dt> {{Element}}
1512
- <dd><p> Zero or more nodes each of which is {{Element}} , {{Text}} , {{ProcessingInstruction }} , or
1513
- {{Comment}} .
1512
+ <dd><p> Zero or more nodes each of which is {{Element}} , {{Text}} , {{CDATASection }} ,
1513
+ {{ProcessingInstruction}} , or {{ Comment}} .
1514
1514
<dt> {{DocumentType}}
1515
1515
<dt> {{Text}}
1516
+ <dt> {{CDATASection}}
1516
1517
<dt> {{ProcessingInstruction}}
1517
1518
<dt> {{Comment}}
1518
1519
<dd><p> None.
@@ -1526,9 +1527,7 @@ The <dfn export id=concept-node-length for=Node>length</dfn> of a
1526
1527
<dt> {{DocumentType}}
1527
1528
<dd> Zero.
1528
1529
1529
- <dt> {{Text}}
1530
- <dt> {{ProcessingInstruction}}
1531
- <dt> {{Comment}}
1530
+ <dt> {{CharacterData}}
1532
1531
<dd> Its {{CharacterData/length}} attribute
1533
1532
value.
1534
1533
@@ -1821,13 +1820,8 @@ of a <var>node</var> into a <var>parent</var> before a
1821
1820
<li> If <var> child</var> is not null and its <a>parent</a> is not <var> parent</var> , then
1822
1821
<a>throw</a> a {{NotFoundError}} .
1823
1822
1824
- <li> If <var> node</var> is not a
1825
- {{DocumentFragment}} , {{DocumentType}} ,
1826
- {{Element}} , {{Text}} ,
1827
- {{ProcessingInstruction}} , or {{Comment}}
1828
- <a>node</a> ,
1829
- <a>throw</a> a
1830
- {{HierarchyRequestError}} .
1823
+ <li> If <var> node</var> is not a {{DocumentFragment}} , {{DocumentType}} , {{Element}} , or
1824
+ {{CharacterData}} <a>node</a> , <a>throw</a> a {{HierarchyRequestError}} .
1831
1825
1832
1826
<li> If either <var> node</var> is a {{Text}}
1833
1827
<a>node</a> and <var> parent</var> is a
@@ -1839,7 +1833,7 @@ of a <var>node</var> into a <var>parent</var> before a
1839
1833
1840
1834
<li>
1841
1835
If <var> parent</var> is a
1842
- <a>document</a> , and any of the statements below, switched
1836
+ <a>document</a> , and any of the statements below, depending
1843
1837
on <var> node</var> , are true, <a>throw</a> a
1844
1838
{{HierarchyRequestError}} .
1845
1839
@@ -2041,13 +2035,8 @@ steps:
2041
2035
<li> If <var> child</var> 's <a>parent</a> is not <var> parent</var> , then <a>throw</a> a
2042
2036
{{NotFoundError}} .
2043
2037
2044
- <li> If <var> node</var> is not a
2045
- {{DocumentFragment}} , {{DocumentType}} ,
2046
- {{Element}} , {{Text}} ,
2047
- {{ProcessingInstruction}} , or {{Comment}}
2048
- <a>node</a> ,
2049
- <a>throw</a> a
2050
- {{HierarchyRequestError}} .
2038
+ <li> If <var> node</var> is not a {{DocumentFragment}} , {{DocumentType}} , {{Element}} , or
2039
+ {{CharacterData}} <a>node</a> , <a>throw</a> a {{HierarchyRequestError}} .
2051
2040
2052
2041
<li> If either <var> node</var> is a {{Text}}
2053
2042
<a>node</a> and <var> parent</var> is a
@@ -2059,7 +2048,7 @@ steps:
2059
2048
2060
2049
<li>
2061
2050
If <var> parent</var> is a
2062
- <a>document</a> , and any of the statements below, switched
2051
+ <a>document</a> , and any of the statements below, depending
2063
2052
on <var> node</var> , are true, <a>throw</a> a
2064
2053
{{HierarchyRequestError}} .
2065
2054
@@ -3460,7 +3449,7 @@ dictionary GetRootNodeOptions {
3460
3449
3461
3450
<p class="note no-backref"> {{Node}} is an abstract interface and does not exist as <a>node</a> . It
3462
3451
is used by all <a>nodes</a> ({{Document}} , {{DocumentType}} , {{DocumentFragment}} , {{Element}} ,
3463
- {{Text}} , {{ProcessingInstruction}} , and {{Comment}} ).
3452
+ {{Text}} , {{CDATASection}} , {{ ProcessingInstruction}} , and {{Comment}} ).
3464
3453
3465
3454
Each <a>node</a> has an associated
3466
3455
<dfn export for=Node id=concept-node-document>node document</dfn> , set upon creation,
@@ -3524,6 +3513,9 @@ that is a <a>document</a>.
3524
3513
<dt> {{Text}}
3525
3514
<dd> "<code> #text</code> ".
3526
3515
3516
+ <dt> {{CDATASection}}
3517
+ <dd> "<code> #cdata-section</code> ".
3518
+
3527
3519
<dt> {{ProcessingInstruction}}
3528
3520
<dd> Its <a for=ProcessingInstruction>target</a> .
3529
3521
@@ -3542,7 +3534,7 @@ that is a <a>document</a>.
3542
3534
</dl>
3543
3535
3544
3536
The <dfn attribute for=Node>nodeType</dfn> attribute's getter, when invoked, must return
3545
- the first matching statement, switching on the <a>context object</a> :
3537
+ the first matching statement, depending on the <a>context object</a> :
3546
3538
3547
3539
<dl class=switch>
3548
3540
<dt> {{Element}}
@@ -3603,7 +3595,7 @@ must return the local name that is associated with the node, if it has one,
3603
3595
and null otherwise.-->
3604
3596
3605
3597
The <dfn attribute for=Node>nodeName</dfn> attribute's getter, when invoked, must return
3606
- the first matching statement, switching on the <a>context object</a> :
3598
+ the first matching statement, depending on the <a>context object</a> :
3607
3599
3608
3600
<dl class=switch>
3609
3601
<dt> {{Element}}
@@ -3619,6 +3611,9 @@ the first matching statement, switching on the <a>context object</a>:
3619
3611
<dt> {{Text}}
3620
3612
<dd> "<code> #text</code> ".
3621
3613
3614
+ <dt> {{CDATASection}}
3615
+ <dd> "<code> #cdata-section</code> ".
3616
+
3622
3617
<dt> {{ProcessingInstruction}}
3623
3618
<dd> Its <a for=ProcessingInstruction>target</a> .
3624
3619
@@ -3750,9 +3745,7 @@ must return the following, depending on the <a>context object</a>:
3750
3745
3751
3746
<dl class=switch>
3752
3747
<!--AttrExodus <dt> {{Attr}} -->
3753
- <dt> {{Text}}
3754
- <dt> {{ProcessingInstruction}}
3755
- <dt> {{Comment}}
3748
+ <dt> {{CharacterData}}
3756
3749
<dd> The <a>context object</a> 's
3757
3750
<a>data</a> .
3758
3751
@@ -3766,9 +3759,7 @@ instead, and then do as described below, depending on the <a>context object</a>:
3766
3759
3767
3760
<dl class=switch>
3768
3761
<!--AttrExodus <dt> {{Attr}} -->
3769
- <dt> {{Text}}
3770
- <dt> {{ProcessingInstruction}}
3771
- <dt> {{Comment}}
3762
+ <dt> {{CharacterData}}
3772
3763
<dd> <a>Replace data</a> with node
3773
3764
<a>context object</a> , offset 0, count
3774
3765
{{CharacterData/length}} attribute value, and
@@ -3779,7 +3770,7 @@ instead, and then do as described below, depending on the <a>context object</a>:
3779
3770
</dl>
3780
3771
3781
3772
<p> The <dfn attribute for=Node><code>textContent</code></dfn> attribute's getter must return the
3782
- following, switching on <a>context object</a> :
3773
+ following, depending on the <a>context object</a> :
3783
3774
3784
3775
<dl class=switch>
3785
3776
<dt> {{DocumentFragment}}
@@ -3791,9 +3782,7 @@ following, switching on <a>context object</a>:
3791
3782
<a>context object</a> , in
3792
3783
<a>tree order</a> .
3793
3784
3794
- <dt> {{Text}}
3795
- <dt> {{ProcessingInstruction}}
3796
- <dt> {{Comment}}
3785
+ <dt> {{CharacterData}}
3797
3786
<dd> The <a>context object</a> 's
3798
3787
<a>data</a> .
3799
3788
@@ -3802,7 +3791,7 @@ following, switching on <a>context object</a>:
3802
3791
</dl>
3803
3792
3804
3793
<p> The {{Node/textContent}} attribute's setter must, if the given value is null, act as if it was
3805
- the empty string instead, and then do as described below, switching on <a>context object</a> :
3794
+ the empty string instead, and then do as described below, depending on the <a>context object</a> :
3806
3795
3807
3796
<dl class=switch>
3808
3797
<dt> {{DocumentFragment}}
@@ -3819,9 +3808,7 @@ the empty string instead, and then do as described below, switching on <a>contex
3819
3808
<li><p> <a>Replace all</a> with <var> node</var> within the <a>context object</a> .
3820
3809
</ol>
3821
3810
3822
- <dt> {{Text}}
3823
- <dt> {{ProcessingInstruction}}
3824
- <dt> {{Comment}}
3811
+ <dt> {{CharacterData}}
3825
3812
<dd><p> <a>Replace data</a> with node <a>context object</a> , offset 0, count
3826
3813
{{CharacterData/length}} attribute value, and data the given value.
3827
3814
@@ -3993,7 +3980,7 @@ dom-Range-extractContents, dom-Range-cloneContents -->
3993
3980
3994
3981
<li>
3995
3982
<p> Otherwise, let <var> copy</var> be a <a>node</a> that implements the same interfaces as
3996
- <var> node</var> , and fulfills these additional requirements, switching on
3983
+ <var> node</var> , and fulfills these additional requirements, depending on
3997
3984
<var> node</var> :
3998
3985
3999
3986
<dl class=switch>
0 commit comments