Skip to content

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.

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
attribute
readonly attribute DOMString? namespaceURI;
int32_t niso_attr_get_namespace_uri(niso_dom* dom, niso_handle self, niso_str* out);
attribute
readonly attribute DOMString? prefix;
int32_t niso_attr_get_prefix(niso_dom* dom, niso_handle self, niso_str* out);
attribute
readonly attribute DOMString localName;
int32_t niso_attr_get_local_name(niso_dom* dom, niso_handle self, niso_str* out);
attribute
readonly attribute DOMString name;
int32_t niso_attr_get_name(niso_dom* dom, niso_handle self, niso_str* out);
attribute
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);
attribute
readonly attribute Element? ownerElement;
int32_t niso_attr_get_owner_element(niso_dom* dom, niso_handle self, niso_handle* out);
attribute
readonly attribute boolean specified;
int32_t niso_attr_get_specified(niso_dom* dom, niso_handle self, bool* out);