@@ -14310,14 +14310,13 @@ interface <dfn interface>DOMStringMap</dfn> {
14310
14310
14311
14311
<div w-nodev>
14312
14312
14313
- <p>The <dfn attribute for="HTMLElement"><code data-x="dom-innerText">innerText</code></dfn> and
14314
- <dfn attribute for="HTMLElement"><code data-x="dom-outerText">outerText</code></dfn> getter steps
14315
- are:</p>
14313
+ <p>The <dfn export>get the text steps</dfn>, given an <span>HTMLElement</span>
14314
+ <var>element</var>, are:</p>
14316
14315
14317
14316
<ol>
14318
14317
<li>
14319
- <p>If <span>this</span > is not <span>being rendered</span> or if the user agent is a non-CSS
14320
- user agent, then return <span>this</span >'s <span>descendant text content</span>.</p>
14318
+ <p>If <var>element</var > is not <span>being rendered</span> or if the user agent is a non-CSS
14319
+ user agent, then return <var>element</var >'s <span>descendant text content</span>.</p>
14321
14320
14322
14321
<p class="note">This step can produce surprising results, as when the <code
14323
14322
data-x="dom-innerText">innerText</code> getter is invoked on an element not <span>being
@@ -14329,13 +14328,12 @@ interface <dfn interface>DOMStringMap</dfn> {
14329
14328
<li><p>Let <var>results</var> be a new empty <span>list</span>.</p></li>
14330
14329
14331
14330
<li>
14332
- <p>For each child node <var>node</var> of <span>this</span >:</p>
14331
+ <p>For each child node <var>node</var> of <var>element</var >:</p>
14333
14332
14334
14333
<ol>
14335
- <li><p>Let <var>current</var> be the <span>list</span> resulting in running the
14336
- <span>rendered text collection steps</span> with <var>node</var>. Each item in
14337
- <var>results</var> will either be a <span>string</span> or a positive integer (a <i>required
14338
- line break count</i>).</p>
14334
+ <li><p>Let <var>current</var> be the <span>list</span> resulting in running the <span>rendered
14335
+ text collection steps</span> with <var>node</var>. Each item in <var>results</var> will either
14336
+ be a <span>string</span> or a positive integer (a <i>required line break count</i>).</p>
14339
14337
14340
14338
<p class="note">Intuitively, a <i>required line break count</i> item means that a certain
14341
14339
number of line breaks appear at that point, but they can be collapsed with the line breaks
@@ -14360,6 +14358,10 @@ interface <dfn interface>DOMStringMap</dfn> {
14360
14358
<li><p>Return the concatenation of the string items in <var>results</var>.</p></li>
14361
14359
</ol>
14362
14360
14361
+ <p>The <dfn attribute for="HTMLElement"><code data-x="dom-innerText">innerText</code></dfn> and
14362
+ <dfn attribute for="HTMLElement"><code data-x="dom-outerText">outerText</code></dfn> getter steps
14363
+ are to return the result of running <span>get the text steps</span> with <span>this</span>.</p>
14364
+
14363
14365
<p>The <dfn>rendered text collection steps</dfn>, given a <span>node</span> <var>node</var>,
14364
14366
are as follows:</p>
14365
14367
@@ -14446,16 +14448,20 @@ interface <dfn interface>DOMStringMap</dfn> {
14446
14448
14447
14449
<hr>
14448
14450
14449
- <p>The <code data-x="dom-innerText">innerText</code> setter steps are:</p>
14451
+ <p>The <dfn export>set the inner text steps</dfn>, given an <span>HTMLElement</span>
14452
+ <var>element</var>, and a string <var>value</var> are:</p>
14450
14453
14451
14454
<ol>
14452
- <li><p>Let <var>fragment</var> be the <span>rendered text fragment</span> for the given value
14453
- given <span>this</span >'s <span>node document</span>.</p></li>
14455
+ <li><p>Let <var>fragment</var> be the <span>rendered text fragment</span> for <var> value</var>
14456
+ given <var>element</var >'s <span>node document</span>.</p></li>
14454
14457
14455
- <li><p><span data-x="concept-node-replace-all">Replace all</span> with <var>fragment</var> within
14456
- <span>this</span >.</p></li>
14458
+ <li><p><span data-x="concept-node-replace-all">Replace all</span> with <var>fragment</var>
14459
+ within <var>element</var >.</p></li>
14457
14460
</ol>
14458
14461
14462
+ <p>The <code data-x="dom-innerText">innerText</code> setter steps are to run <span>set the inner
14463
+ text steps</span>.</p>
14464
+
14459
14465
<p>The <code data-x="dom-outerText">outerText</code> setter steps are:</p>
14460
14466
14461
14467
<ol>
0 commit comments