[Bug 10990] New: HTMLFormElement.namedItem missing a case


           Summary: HTMLFormElement.namedItem missing a case
           Product: HTML WG
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML5 spec (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: cam@mcc.id.au
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,

Step 2 of the algorithm for HTMLFormElement.namedItem currently says:

  Otherwise, name is the name of one of the entries in the form element's past
names map: return the object associated with name in that map.

However, it is possible to call namedItem with a name that is neither an
element currently in the form nor the name of one of the entries in the past
names map, since you can call namedItem directly:

  var f = document.createElement('form');

The algorithm should handle this case, or you should change the name getter
declaration to:

  omittable caller getter any namedItem(in DOMString name);

so that there is no namedItem property on HTMLFormElements, if that's the

(This may apply to other interfaces with name getters; I didn't check.)

Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Thursday, 7 October 2010 21:51:55 UTC