This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 28039 - Notes: "root element" may not be an element
Summary: Notes: "root element" may not be an element
Status: RESOLVED MOVED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: https://html.spec.whatwg.org/#root-el...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-17 12:18 UTC by contributor
Modified: 2016-03-16 17:27 UTC (History)
5 users (show)

See Also:


Attachments

Description contributor 2015-02-17 12:18:02 UTC
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
Comment 1 Ms2ger 2015-02-17 12:19:00 UTC
For example, the "root element" of an orphan text node would be the text node itself.
Comment 2 Ian 'Hixie' Hickson 2015-03-04 20:34:14 UTC
What is the problem here?
Comment 3 Ms2ger 2015-03-04 21:22:34 UTC
The terminology is rather surprising; if you want to keep the definition, I'd like at least a note.
Comment 4 Philip Jägenstedt 2016-02-04 07:54:20 UTC
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.
Comment 5 Anne 2016-02-24 12:30:06 UTC
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.
Comment 6 Anne 2016-02-24 13:36:09 UTC
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.
Comment 7 Anne 2016-03-16 17:27:05 UTC
https://github.com/whatwg/html/pull/891