New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[css-display-3] Can't understanding element and text nodes #4663
Comments
The DOM spec defines DOM elements and DOM text nodes. The element tree then contains elements (DOM elements + tree-abiding pseudo-elements) and text nodes (DOM text nodes). So I think this will be clear once the spec defines how the element tree is created (#1810).
It's a text node, but note it also includes the surrounding spaces and newlines. |
@Loirooriol Thanks for your response, very helpful. Hope the Working Group can give that spec as soon as possible. Appreciation! |
Yes, it's referring to the same concepts as the DOM spec. |
@tabatkins I think it is possible to indicate the reference here. |
We could add DOM as an example, but fundamentally CSS does not require the DOM specifically. It just requires a tree of elements and text nodes, and if you want to use it on a different type of document tree it's fine. |
https://www.w3.org/TR/css-display-3/#intro
Element and text node are defined here, but there is no detailed explanation of what is element and text node. Can we give a detailed explanation here.
For example:
Is
Some text
a text node here?Thanks for all responses. 👋
The text was updated successfully, but these errors were encountered: