Skip to content

Commit 5220766

Browse files
visible-inner-text: replacing "ASCII whitespace" with "ASCII space character".
1 parent a141df8 commit 5220766

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pages/glossary/visible-inner-text.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ input_aspects:
1313
The <dfn>visible inner text of a node</dfn> depends on the kind of node.
1414

1515
The <dfn id="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);
1818
- otherwise, the visible inner text of the [text node][] is the empty string (`""`).
1919

2020

@@ -23,7 +23,7 @@ The <dfn id="visible-inner-text:for-element">visible inner text of an [element][
2323
- if the [element][] is a [`<br>`][<br>] element, its visible inner text is a newline character (`"\n"`);
2424
- 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"`);
2525
- 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 (`" "`);
2727
- 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][]).
2828

2929

0 commit comments

Comments
 (0)