Attr
Generated from idl/dom.webidl when the site was built at 7aa23e2.
Attr is an interface in idl/dom.webidl, inheriting Node, exposed in Window. What it does is on MDN; this page says what niso has of it.
Status
Section titled “Status”The web features its members belong to, each with its Baseline status on the web and how much of the feature’s WPT suite passes in niso (see Web platform support).
| Feature | On the web | In niso | Members |
|---|---|---|---|
| DOM | Widely available | No WPT tests WPT maps no test to it | 7 |
Members
Section titled “Members”namespaceURI
Section titled “namespaceURI”readonly attribute DOMString? namespaceURI;int32_t niso_attr_get_namespace_uri(niso_dom* dom, niso_handle self, niso_str* out);prefix
Section titled “prefix”readonly attribute DOMString? prefix;int32_t niso_attr_get_prefix(niso_dom* dom, niso_handle self, niso_str* out);localName
Section titled “localName”readonly attribute DOMString localName;int32_t niso_attr_get_local_name(niso_dom* dom, niso_handle self, niso_str* out);readonly attribute DOMString name;int32_t niso_attr_get_name(niso_dom* dom, niso_handle self, niso_str* out);attribute DOMString value;int32_t niso_attr_get_value(niso_dom* dom, niso_handle self, niso_str* out);int32_t niso_attr_set_value(niso_dom* dom, niso_handle self, const char* value, size_t value_len);ownerElement
Section titled “ownerElement”readonly attribute Element? ownerElement;int32_t niso_attr_get_owner_element(niso_dom* dom, niso_handle self, niso_handle* out);specified
Section titled “specified”readonly attribute boolean specified;int32_t niso_attr_get_specified(niso_dom* dom, niso_handle self, bool* out);