Skip to content

Commit a141df8

Browse files
visible-inner-text definition: now normalizing whitespace in the definition.
1 parent 46294dd commit a141df8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pages/glossary/visible-inner-text.md

Lines changed: 2 additions & 2 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][];
17-
- if the [text node][] is not-[visible][], [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 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);
1818
- otherwise, the visible inner text of the [text node][] is the empty string (`""`).
1919

2020

0 commit comments

Comments
 (0)