Closed
Bug 1189770
Opened 9 years ago
Closed 7 years ago
document-element-inserted documentation is confusing at best
Categories
(Developer Documentation Graveyard :: Add-ons, defect)
Developer Documentation Graveyard
Add-ons
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: arantius, Unassigned)
References
()
Details
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:39.0) Gecko/20100101 Firefox/39.0 Build ID: 20150629114848 Steps to reproduce: https://developer.mozilla.org/de/docs/Observer_Notifications#Documents Says: "document-element-inserted ... Sent immediately after the root element of a document has been created ..." But in actuality, it happens some time after some generally unpredictable set of the document has already been appended to the DOM. (For more context: https://github.com/greasemonkey/greasemonkey/issues/1849#issuecomment-126708082 ). Sometimes it seems to happen when <body> is created, sometimes a <script>, if there happens to be one in <head>. I don't know if the documentation or the implementation is wrong, but they do not appear to match. What I want is there to be a document, with perhaps a <head> and <body>, but no other nodes. What the documentation says implies that is the case. Experiment shows it is not.
Updated•9 years ago
|
Component: Untriaged → Add-ons
Product: Firefox → Developer Documentation
Version: 39 Branch → unspecified
Updated•7 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•