@@ -12272,12 +12272,11 @@ interface <dfn>DOMStringMap</dfn> {
12272
12272
</div>
12273
12273
12274
12274
12275
- <h4>The <code data-x="dom-innerText">innerText</code> IDL attribute</h4>
12275
+ <h4 id="the-innertext-idl-attribute">The <code data-x="dom-innerText">innerText</code> getter and
12276
+ setter</h4>
12276
12277
12277
12278
<dl class="domintro">
12278
-
12279
12279
<dt><var>element</var> . <code subdfn data-x="dom-innerText">innerText</code> [ = <var>value</var> ]</dt>
12280
-
12281
12280
<dd>
12282
12281
<p>Returns the element's text content "as rendered".</p>
12283
12282
@@ -12287,16 +12286,15 @@ interface <dfn>DOMStringMap</dfn> {
12287
12286
12288
12287
<div w-nodev>
12289
12288
12290
- <p>On getting, the <dfn><code data-x="dom-innerText">innerText</code></dfn> attribute must follow
12291
- these steps:</p>
12289
+ <p>The <dfn><code data-x="dom-innerText">innerText</code></dfn> getter steps are:</p>
12292
12290
12293
12291
<ol>
12294
12292
<li>
12295
- <p>If this element is not <span>being rendered</span>, or if the user agent is a non-CSS user
12296
- agent, then return this element 's <span>descendant text content</span>.</p>
12293
+ <p>If <span> this</span> is not <span>being rendered</span> or if the user agent is a non-CSS
12294
+ user agent, then return <span> this</span> 's <span>descendant text content</span>.</p>
12297
12295
12298
12296
<p class="note">This step can produce surprising results, as when the <code
12299
- data-x="dom-innerText">innerText</code> attribute is accessed on an element not <span>being
12297
+ data-x="dom-innerText">innerText</code> getter is invoked on an element not <span>being
12300
12298
rendered</span>, its text contents are returned, but when accessed on an element that is
12301
12299
<span>being rendered</span>, all of its children that are not <span>being rendered</span> have
12302
12300
their text contents ignored.</p>
@@ -12305,7 +12303,7 @@ interface <dfn>DOMStringMap</dfn> {
12305
12303
<li><p>Let <var>results</var> be a new empty <span>list</span>.</p></li>
12306
12304
12307
12305
<li>
12308
- <p>For each child node <var>node</var> of this element :</p>
12306
+ <p>For each child node <var>node</var> of <span> this</span> :</p>
12309
12307
12310
12308
<ol>
12311
12309
<li><p>Let <var>current</var> be the <span>list</span> resulting in running the <span>inner
@@ -12419,11 +12417,10 @@ interface <dfn>DOMStringMap</dfn> {
12419
12417
stringifier and maybe expose it directly on <span data-x="concept-range">ranges</span>. See <a
12420
12418
href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=10583">Bugzilla bug 10583</a>.</p>
12421
12419
12422
- <p>On setting, the <code data-x="dom-innerText">innerText</code> attribute must follow these
12423
- steps:</p>
12420
+ <p>The <code data-x="dom-innerText">innerText</code> setter steps are:</p>
12424
12421
12425
12422
<ol>
12426
- <li><p>Let <var>document</var> be this element 's <span>node document</span>.</p></li>
12423
+ <li><p>Let <var>document</var> be <span> this</span> 's <span>node document</span>.</p></li>
12427
12424
12428
12425
<li><p>Let <var>fragment</var> be a new <code>DocumentFragment</code> object whose <span>node
12429
12426
document</span> is <var>document</var>.</p></li>
@@ -12469,7 +12466,7 @@ interface <dfn>DOMStringMap</dfn> {
12469
12466
</li>
12470
12467
12471
12468
<li><p><span data-x="concept-node-replace-all">Replace all</span> with <var>fragment</var> within
12472
- this element .</p></li>
12469
+ <span> this</span> .</p></li>
12473
12470
</ol>
12474
12471
12475
12472
</div>
@@ -121894,8 +121891,8 @@ INSERT INTERFACES HERE
121894
121891
href="https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document">W3C Permissive
121895
121892
Document License</a>.</p>
121896
121893
121897
- <p>Part of the revision history of the <code data-x="dom-innerText">innerText</code> IDL attribute
121898
- can be found in the <a
121894
+ <p>Part of the revision history of the <code data-x="dom-innerText">innerText</code> getter and
121895
+ setter can be found in the <a
121899
121896
href="https://github.com/rocallahan/innerText-spec"><code>rocallahan/innerText-spec</code>
121900
121897
repository</a>.</p>
121901
121898
0 commit comments