This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Specification: https://html.spec.whatwg.org/multipage/infrastructure.html Multipage: https://html.spec.whatwg.org/multipage/#root-element Complete: https://html.spec.whatwg.org/#root-element Referrer: Comment: "root element" may not be an element Posted from: 91.180.137.234 by ms2ger@gmail.com User agent: Mozilla/5.0 (X11; Linux x86_64; rv:34.0) Gecko/20100101 Firefox/34.0
For example, the "root element" of an orphan text node would be the text node itself.
What is the problem here?
The terminology is rather surprising; if you want to keep the definition, I'd like at least a note.
If this terminology is confusing, wouldn't the note have to be in all the places that use the "root element" concept? Adding a note after the definition itself doesn't seem worthwhile given that it's already pretty clear.
It seems we can replace usage of "root element" where it means self-or-root-of-self with "root" per https://dom.spec.whatwg.org/#concept-tree-root. That seems clearer than adding a note.
Hmm, I guess if the node is in a document "root element" still refers to the document's first element child and not document itself? I guess properly fixing this requires indeed going through all usage of the term and checking what can be used instead which may be a bit trickier.
https://github.com/whatwg/html/pull/891