[Webkit-unassigned] [Bug 7321] REGRESSION: style tag in body causes two head elements to appear in the DOM

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Sun Feb 19 17:50:12 PST 2006


------- Comment #4 from ddkilzer at kilzer.net  2006-02-19 17:50 PDT -------
With Darin's proposed fix:

bool HTMLParser::headCreateErrorCheck(Token* t, RefPtr<NodeImpl>& result)
    if (!head || current->localName() == htmlTag) {
        head = new HTMLHeadElementImpl(document);
        result = head;
    return false;

We must make sure that no more than one <title> and one <base> tag appear in
the <head>.  (This is not the case if only the above change is made.)  Firefox
1.5 currently prevents multiple <title> tags, but it doesn't prevent multiple
<base> tags.  I haven't surveyed MSIE 6 yet.

Regarding Comment #3, there seems like there might be a lot of unused code in
the handleError() method, but I don't grok the HTML parser well enough (yet) to
understand when all that code may be used.

Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the webkit-unassigned mailing list