If a node having the specified name exists in the node map, then a reference to it will be returned. If there is no matching node, a null will be returned instead.
It isn't clear what happens if there are duplicate nodes with the same name. Some implementations may choose to return a collection of all nodes with a matching name.
Prev | Home | Next |
NamedNodeMap object | Up | NamedNodeMap.item() |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |