[Webkit-unassigned] [Bug 22441] Bridge the gap between the generated ElementFactory and HTMLElementFactory

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Nov 26 16:06:49 PST 2008


------- Comment #21 from koivisto at iki.fi  2008-11-26 16:06 PDT -------
I don't agree with adding qname parameter to every element. There is no reason
to ever construct HTMLHtmlElement if other tag name than <html>. We lose
self-documenting nature of code like this:

    RefPtr<HTMLTableCaptionElement> caption = new


   RefPtr<HTMLTableSectionElement> newBody = new
HTMLTableSectionElement(tbodyTag, document());

where we can immeditealy see that HTMLTableSectionElement can represent
multiple tags while HTMLTableCaptionElement can not.

Surely you it would be better to make your autogeneration script slightly
smarter rather than losing this architectural feature?

Configure bugmail: https://bugs.webkit.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