-
Notifications
You must be signed in to change notification settings - Fork 23
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
Clarifying "text node" definition (step 2G) #212
Comments
Competing text node definitions:
|
I think the spec should also define what the node's textual content is (found this issue by trying to answer the question about how whitespaces should be handled when computing the name). |
I would propose using the DOM text interface definition: https://dom.spec.whatwg.org/#interface-text. @OrKoN from my investigation, the "textual contents" of text nodes (Text interface) is its
In terms of DOM spec, for text nodes (and also comment nodes), they also inherit from the generic Node interface which has a Depending on the definition's granularity, the textual contents could be the July 14 update: Specifically, it looks like the exclusive text node definition should be referenced from the Text interface. An "exclusive text node" is effectively the text contents that is referenced in accname per nodeType. DOM spec states the definition of "exclusive text node" as:
|
I believe trimming whitespace generally from accName/accDescription ((e.g., trailing/leading whitespace) is being tracked here: #95. |
In "4.3.2 Computation steps", Step 2G of the name computation algorithm states:
Although a "Node" definition is provided, it's not made explicit what a "text node" is. I would propose adding more documentation, e.g.,:
Other sections that would need updating with linked "node" references:
Further clarification from @cookiecrook and additional context for why this is being recommended in web-platform-tests/wpt#42407 (comment):
The text was updated successfully, but these errors were encountered: