Naši dobrovolníci ještě tento článek do jazyka Čeština nepřeložili. Přidejte se a pomozte nám tuto práci dokončit!
Tento článek si můžete přečíst také v jazyce English (US).

The NonDocumentTypeChildNode interface contains methods that are particular to Node objects that can have a parent, but not suitable for DocumentType.

NonDocumentTypeChildNode is a raw interface and no object of this type can be created; it is implemented by Element, and CharacterData objects.

Properties

There is no inherited property.

NonDocumentTypeChildNode.previousElementSibling Read only
Returns the Element immediately prior to this node in its parent's children list, or null if there is no Element in the list prior to this node.
NonDocumentTypeChildNode.nextElementSibling Read only
Returns the Element immediately following this node in its parent's children list, or null if there is no Element in the list following this node.

Methods

There is neither inherited, nor specific method.

Specifications

Specification Status Comment
DOM
The definition of 'NonDocumentTypeChildNode' in that specification.
Living Standard Splitted the ElementTraversal interface in ParentNode, ChildNode, and NonDocumentTypeChildNode. The previousElementSibling and nextElementSibling are now defined on the latter.
The CharacterData and Element implemented the new interfaces.
Element Traversal Specification
The definition of 'ElementTraversal' in that specification.
Obsolete Added the initial definition of its properties to the ElementTraversal pure interface and use it on Element.

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Basic supportChrome Full support 1Edge Full support YesFirefox Full support 3.5IE Full support 9Opera Full support 10Safari Full support 4WebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support 4Opera Android Full support 10Safari iOS Full support YesSamsung Internet Android ?
Support (on CharacterData)Chrome Full support 1Edge Full support YesFirefox Full support 25IE Full support 9Opera Full support 10Safari Full support 4WebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support 25Opera Android Full support 10Safari iOS Full support YesSamsung Internet Android ?
nextElementSiblingChrome Full support 4Edge Full support YesFirefox Full support 3.5IE Full support 9Opera Full support 10Safari Full support 4WebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support 4Opera Android Full support 10Safari iOS Full support YesSamsung Internet Android ?
previousElementSiblingChrome Full support 4Edge Full support YesFirefox Full support 3.5IE Full support 9Opera Full support 10Safari Full support 4WebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support 4Opera Android Full support 10Safari iOS Full support YesSamsung Internet Android ?

Legend

Full support  
Full support
Compatibility unknown  
Compatibility unknown

See also

Štítky a přispěvatelé do dokumentace

Přispěvatelé této stránky: fscholz, teoli
Poslední aktualizace od: fscholz,