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)

defect
Not set
normal

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.
Henri, can you take a look, please?
IE9 and Opera 11.51 don't throw in either case. Why does the spec follow WebKit instead of IE?
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.