According to the specification[1], "hidden" input type element isn't labelable. * FF=PASS * IE=PASS * OP=FAIL Sample URI(http://jsfiddle.net/56yRM/) should output only "Hidden". [1] http://www.whatwg.org/specs/web-apps/current-work/multipage/forms.html#category-label
Created attachment 130763 [details] Patch 1
Created attachment 131570 [details] Patch 2
Comment on attachment 131570 [details] Patch 2 View in context: https://bugs.webkit.org/attachment.cgi?id=131570&action=review > Source/WebCore/ChangeLog:12 > + Note: The HTML5 specification isn't clear for non-labelable element's "labels" > + attribute return value. FF and OP return empty node list. IE returns null. nit: 'FF' 'OP' are not so common abbreviations. > LayoutTests/fast/forms/label/labelable-elements-expected.txt:84 > -FAIL element.labels should be undefined. Was [object NodeList] > -PASS element.labels is not null > +PASS element.labels is null We need similar changes for LayoutTests/platform/*/fast/forms/label/labelable-elements-expected.txt.
Created attachment 131785 [details] Patch 3
Comment on attachment 131785 [details] Patch 3 ok
Comment on attachment 131785 [details] Patch 3 Clearing flags on attachment: 131785 Committed r110665: <http://trac.webkit.org/changeset/110665>
All reviewed patches have been landed. Closing bug.