You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/glossary/visible-inner-text.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,8 +13,8 @@ input_aspects:
13
13
The <dfn>visible inner text of a node</dfn> depends on the kind of node.
14
14
15
15
The <dfnid="visible-inner-text:for-text">visible inner text of a [text node][]</dfn> is:
16
-
- if the [text node][] is [visible][], its visible inner text is its [data][] with whitespace normalized by replacing contiguous [whitespace][] with the string `" "` (a single ASCII whitespace);
17
-
- if the [text node][] is not [visible][], is [rendered][], and contains only [whitespace][], its visible inner text is the string `" "` (a single ASCII whitespace);
16
+
- if the [text node][] is [visible][], its visible inner text is its [data][] with whitespace normalized by replacing contiguous [whitespace][] with the string `" "` (a single ASCII space character);
17
+
- if the [text node][] is not [visible][], is [rendered][], and contains only [whitespace][], its visible inner text is the string `" "` (a single ASCII space character);
18
18
- otherwise, the visible inner text of the [text node][] is the empty string (`""`).
19
19
20
20
@@ -23,7 +23,7 @@ The <dfn id="visible-inner-text:for-element">visible inner text of an [element][
23
23
- if the [element][] is a [`<br>`][<br>] element, its visible inner text is a newline character (`"\n"`);
24
24
- if the [element][] is a [`<p>`][<p>] element, its visible inner text is the concatenation a newline character (`"\n"`) plus the visible inner text of its children (in [tree order][] in the [flat tree][]), plus a newline character (`"\n"`);
25
25
- if the [computed][][`display`][display] property of the [element][] has an [outer display type][] of `block`, or an [inner display type][] of `table-caption`, the visible inner text of the [element][] is the concatenation of a newline character (`"\n"`) plus the visible inner text of its children (in [tree order][] in the [flat tree][]) plus a newline character (`"\n"`);
26
-
- if the [computed][][`display`][display] property of the [element][] has an [inner display type][] of `table-cell` or `table-row`, the visible inner text of the [element][] is the concatenation of an ASCII whitespace (`" "`) plus the visible inner text of its children (in [tree order][] in the [flat tree][]) plus an ASCII whitespace (`" "`);
26
+
- if the [computed][][`display`][display] property of the [element][] has an [inner display type][] of `table-cell` or `table-row`, the visible inner text of the [element][] is the concatenation of an ASCII space character (`" "`) plus the visible inner text of its children (in [tree order][] in the [flat tree][]) plus an ASCII space character (`" "`);
27
27
- otherwise, the visible inner text of the [element][] is the concatenation of the visible inner text of its children (in [tree order][] in the [flat tree][]).
0 commit comments