[Webkit-unassigned] [Bug 58837] HTML5 Fieldset Disabled Tag Does Not Work In Chrome

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 18 14:55:09 PDT 2011


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





--- Comment #1 from Naoki Takano <takano.naoki at gmail.com>  2011-04-18 14:55:09 PST ---
Now I know the reason. But still I'm pondering how I should implement it.

<FieldSet> is very similar to <Form> as parent-child relation.  The relation between <Form> and other child field elements is tied in the child element class, FormAssociatedElement.

It is the start point that we implement the similar relation between <FieldSet> and other input field elements.

In FormAssociatedElement,
1, The parent form element, HTMLFormElement, is passed into the constructor and the parent form is set.
2, If no valid parent is passed, traverse ancestors to find the form parent.
3, If the node doesn't have the form parent and is inserted into the node tree, insertedIntoTree() is called and traverse ancestors to the form parent.

As you know, HTMLFieldSetElement is not special element as HTMLFormElement. So we cannot choose 1 method for HTMLFieldSetElement.

At first, I tried to implement 2 and 3 methods to find HTMLFieldSetElement like HTMLFormElement. But traverse is pretty heavy process and I suspect that it might affect some perfomance impact to Webkit rendering. Because FormAssociatedElement is derived by all input field elements.

Is there any other better way you recommend?

Or is it Ok to implement traverse to find HTMLFieldSetElement?

Please give me any suggestion, comment and advice.

Thanks,

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