Our volunteers haven't translated this article into 中文 (简体) yet. Join us and help get the job done!
getElementsByAttributeNS(ns, attrib, value )
- Return type: DOM NodeList
- Returns an array of all the child elements of the element that have the attribute namespace given by the first argument, the attribute name given by the second argument, and the value given by the third argument. If the namespace (first argument) is set to '*', elements with any attribute namespace will be retrieved. If the third argument is '*', the elements retrieved may have the attribute (second argument) set to any value.
- Note that this method is only available on XUL elements and is not part of the DOM.