[Webkit-unassigned] [Bug 66287] Element without renderer as documentElement triggers NULL ptr

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 17 04:31:53 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=66287





--- Comment #4 from Hyungwook Lee <withlhw at gmail.com>  2011-08-17 04:31:53 PST ---
I think <HEAD> element can not be documentElement in this case.

According to DOM2 Core spec, in insertBefore() part mentioned as follows.
If refChild is null, insert newChild at the end of the list of children.

It means that when we call document.insertBefore(oHead, null);
<HEAD> will be inserted at the end of tree not first child position.
And documentElement can be only first child element.

Many places in WebKit codes assumes that document element has its own renderer.
Hence I think we can't allow to be an element which does not has its own renderer.

I'm trying to find why we set <HEAD> element in documentElement.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list