Closed
Bug 681052
Opened 14 years ago
Closed 13 years ago
insertAdjacentHTML throws when position is "beforebegin"/"afterend", and the GetParent returns null
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
INVALID
People
(Reporter: Ms2ger, Unassigned)
References
Details
The spec says:
Let context be the context object's parentNode.
If context is null, abort these steps.
If context is a Document object, throw a NO_MODIFICATION_ALLOWED_ERR exception and abort these steps.
We throw an exception in both of these cases.
![]() |
||
Comment 1•14 years ago
|
||
Henri, can you take a look, please?
Comment 2•13 years ago
|
||
IE9 and Opera 11.51 don't throw in either case. Why does the spec follow WebKit instead of IE?
Updated•13 years ago
|
Reporter | ||
Comment 3•13 years ago
|
||
The spec should now match us.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•