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
In the introduction section of [css-display-3], the "text run" concept is introduced in the following paragraph:
...each contiguous sequence of sibling text nodes generates a text run containing their text contents, which is assigned the same styles as the generating text nodes.
As far as I understand, several contiguous sibling text nodes in the same element can occur only as a result of DOM operations like appendChild(). But what about sibling text nodes separated only by the HTML comment node? Technically, they hardly can be called "a contiguous sequence", but the intent of the "text run" concept seems to suggest that they should form a single text run rather than two separate ones. Doesn't this need clarifying?
The text was updated successfully, but these errors were encountered:
My understanding is that comment nodes exist in the DOM tree but not in the element tree.
The element tree only contains text nodes and elements (including pseudo-elements).
So in your example, the text nodes are actually contiguous.
But of course this needs to be properly defined, see #1810
My understanding was that the element tree is an abstraction and DOM is one its possible implementation (not the only, but the most practically common), so I didn't think of it as of some intermediate structure. This comment from @fantasai seems to support this understanding. So making this definition unambiguous would be really appreciated!
In the introduction section of [css-display-3], the "text run" concept is introduced in the following paragraph:
As far as I understand, several contiguous sibling text nodes in the same element can occur only as a result of DOM operations like
appendChild()
. But what about sibling text nodes separated only by the HTML comment node? Technically, they hardly can be called "a contiguous sequence", but the intent of the "text run" concept seems to suggest that they should form a single text run rather than two separate ones. Doesn't this need clarifying?The text was updated successfully, but these errors were encountered: