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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 22 20:30:02 PDT 2011


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





--- Comment #9 from Hyungwook Lee <withlhw at gmail.com>  2011-08-22 20:30:02 PST ---
Firefox and WebKit allow HEAD be the document element.

In case of Opera and IE, It seems not allow HEAD be the document element.
Actually, Opera and IE is not properly works well.

According DOM 2 Core spec, I think HEAD element can be document element through document.insertBefore() DOM API.
Because DOM API do not care its element name and all of element can be document element.

But several browser do not allow HEAD to be document element.

I was thing what can be solution for this.

1. Let HEAD to be document element and modify WebKit codes to prevent direclty access its renderer which same as my patches.

2.Do not allow to add into the DOM tree which do not has its renderer until there is no html element in the DOM tree via DOM API.

3. Add html element in the DOM tree automaticlaly before add HEAD element same as HTMLTreeBuilder.

I think #1(FireFox) and #2(Opera / IE) can be solution and #3 is not good way.

My personal opinion is that #1 is more better way to meet DOM spec than others.

-- 
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