[Webkit-unassigned] [Bug 80499] New: [Forms] label.form attribute doesn't work

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 7 00:12:25 PST 2012


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

           Summary: [Forms] label.form attribute doesn't work
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
               URL: http://jsfiddle.net/gDcAG/3/
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Forms
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: yosin at chromium.org


According to the standard[1], the "label" element has "form" attribute in IDL.
However, in sample URI(http://jsfiddle.net/gDcAG/3/), JS expression label1.form returns null instead of HTMLFormElement object,
even if HTMLLabelElement.idl[2] has "form" attribute.

"form" attribute is implemented in HTMLElement.h[3] as virtualForm/findFormAncestor in HTMLElement.cpp[4].
In this implementation, "label" elements outside "form" elements don't work as expected.

== References ==
[1] http://www.whatwg.org/specs/web-apps/current-work/multipage/forms.html#the-label-element
[2] http://trac.webkit.org/browser/trunk/Source/WebCore/html/HTMLLabelElement.idl
[3] http://trac.webkit.org/browser/trunk/Source/WebCore/html/HTMLElement.h
[4] http://trac.webkit.org/browser/trunk/Source/WebCore/html/HTMLElement.cpp

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