[Webkit-unassigned] [Bug 154949] New: HTMLFormControlsCollection.namedItem() does not return a RadioNodelist

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 2 19:30:56 PST 2016


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

            Bug ID: 154949
           Summary: HTMLFormControlsCollection.namedItem() does not return
                    a RadioNodelist
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Forms
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: frankolivier at gmail.com

See https://jsfiddle.net/mjba21mk/5/

<form name="f">
 <input type="radio" name="r" value="value1" />
 <input type="radio" name="r" value="value2" checked />
</form>

document.f.r.value is undefined - as document.f.r is a NodeList
document.f.r.value should be “value2” - as document.f.r should be a RadioNodeList

Relevant spec https://w3c.github.io/html/single-page.html#the-htmlformcontrolscollection-interface

Works in latest Chrome, Firefox; will be fixed soon in Edge


This bug might be covered by https://bugs.webkit.org/show_bug.cgi?id=150957

Seen on https://www.washingtonpost.com/news/the-fix/wp/2015/10/06/hey-lets-all-make-our-own-donald-trump-hats/
User can’t create a white-and-gold hat in the MAKE A HAT GREAT AGAIN section

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160303/65926910/attachment.html>


More information about the webkit-unassigned mailing list