HTMLFormControlsCollection

Czytasz angielską wersję tego artykułu, ponieważ nie ma jeszcze tłumaczenia dla tego języka. Pomóż nam przetłumaczyć ten artykuł!

The HTMLFormControlsCollection interface represents a collection of HTML form control elements. It represents the lists returned by the HTMLFormElement interface's elements property and the HTMLFieldSetElement interface's elements property.

This interface replaces one method from HTMLCollection, on which it is based.

Properties

This interface inherits the properties of its parent, HTMLCollection.

Methods

This interface inherits the methods of its parent, HTMLCollection.

HTMLFormControlsCollection.namedItem()
Returns the RadioNodeList or the Element in the collection whose name or id matches the specified name, or null if no nodes match. Note that this version of namedItem() hide the one inherited from HTMLCollection. Like that one, in JavaScript, using the array bracket syntax with a String, like collection["value"] is equivalent to collection.namedItem("value").

Specifications

Specification Status Comment
HTML Living Standard
The definition of 'HTMLFormControlsCollection' in that specification.
Living Standard No change since the last snapshot, HTML5.
HTML5
The definition of 'HTMLFormControlsCollection' in that specification.
Recommendation In this snapshot of HTML Living Standard, the HTMLFormControlsCollections is defined for the first time.

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
HTMLFormControlsCollectionChrome Full support YesEdge No support NoFirefox Full support 27IE No support NoOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesFirefox Android Full support 27Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
namedItemChrome Full support YesEdge No support NoFirefox Full support 33
Full support 33
No support 27 — 33
Notes
Notes Returned a NodeList instead of a RadioNodeList.
IE No support NoOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesFirefox Android Full support 33
Full support 33
No support 27 — 33
Notes
Notes Returned a NodeList instead of a RadioNodeList.
Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown
See implementation notes.
See implementation notes.

See also