The Attr interface represents one of a DOM element's attributes
an object. In most DOM methods, you will directly retrieve the
as a string (e.g., Element.getAttribute()
), but certain functions
Element.getAttributeNode()
) or means of iterating return Attr
The Attr interface represents one of a DOM element's attributes an object. In most DOM methods, you will directly retrieve the as a string (e.g., `Element.getAttribute()`), but certain functions `Element.getAttributeNode()`) or means of iterating return Attr
(local-name this)
Property.
[Read Only]
The Attr.localName read-only property returns the local part the qualified name of an element.
name = attribute.localName
See also: https://developer.mozilla.org/en-US/docs/Web/API/Attr/localName
Property. [Read Only] The Attr.localName read-only property returns the local part the qualified name of an element. `name = attribute.localName` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Attr/localName`
(name this)
Property.
The attribute's name.
Property. The attribute's name.
(namespace-uri this)
Property.
[Read Only]
The Attr.namespaceURI read-only property returns the namespace of the attribute, or null if the element is not in a namespace.
namespace = attribute.namespaceURI
See also: https://developer.mozilla.org/en-US/docs/Web/API/Attr/namespaceURI
Property. [Read Only] The Attr.namespaceURI read-only property returns the namespace of the attribute, or null if the element is not in a namespace. `namespace = attribute.namespaceURI` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Attr/namespaceURI`
(owner-element this)
Property.
The element holding the attribute. Note: DOM Level 4 removed this property. The assumption was since you get an Attr object from an Element, you should already the associated element. As that doesn't hold true in cases like Attr objects being returned Document.evaluate, the DOM Living Standard reintroduced the property. Gecko outputs a deprecation note starting from Gecko 7.0 (Firefox / Thunderbird 7.0 / SeaMonkey 2.4). This note was removed again Gecko 49.0 (Firefox 49.0 / Thunderbird 49.0 / SeaMonkey 2.46).
Property. The element holding the attribute. Note: DOM Level 4 removed this property. The assumption was since you get an Attr object from an Element, you should already the associated element. As that doesn't hold true in cases like Attr objects being returned Document.evaluate, the DOM Living Standard reintroduced the property. Gecko outputs a deprecation note starting from Gecko 7.0 (Firefox / Thunderbird 7.0 / SeaMonkey 2.4). This note was removed again Gecko 49.0 (Firefox 49.0 / Thunderbird 49.0 / SeaMonkey 2.46).
(prefix this)
Property.
[Read Only]
The Attr.prefix read-only property returns the namespace prefix the specified attribute, or null if no prefix is specified.
string = attribute.prefix
See also: https://developer.mozilla.org/en-US/docs/Web/API/Attr/prefix
Property. [Read Only] The Attr.prefix read-only property returns the namespace prefix the specified attribute, or null if no prefix is specified. `string = attribute.prefix` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Attr/prefix`
(set-name! this val)
Property.
The attribute's name.
Property. The attribute's name.
(set-owner-element! this val)
Property.
The element holding the attribute. Note: DOM Level 4 removed this property. The assumption was since you get an Attr object from an Element, you should already the associated element. As that doesn't hold true in cases like Attr objects being returned Document.evaluate, the DOM Living Standard reintroduced the property. Gecko outputs a deprecation note starting from Gecko 7.0 (Firefox / Thunderbird 7.0 / SeaMonkey 2.4). This note was removed again Gecko 49.0 (Firefox 49.0 / Thunderbird 49.0 / SeaMonkey 2.46).
Property. The element holding the attribute. Note: DOM Level 4 removed this property. The assumption was since you get an Attr object from an Element, you should already the associated element. As that doesn't hold true in cases like Attr objects being returned Document.evaluate, the DOM Living Standard reintroduced the property. Gecko outputs a deprecation note starting from Gecko 7.0 (Firefox / Thunderbird 7.0 / SeaMonkey 2.4). This note was removed again Gecko 49.0 (Firefox 49.0 / Thunderbird 49.0 / SeaMonkey 2.46).
(set-specified! this val)
Property.
This property always returns true. Originally, it returned true the attribute was explicitly specified in the source code or a script, and false if its value came from the default one defined the document's DTD.
Property. This property always returns true. Originally, it returned true the attribute was explicitly specified in the source code or a script, and false if its value came from the default one defined the document's DTD.
(set-value! this val)
Property.
The attribute's value.
Property. The attribute's value.
(specified this)
Property.
This property always returns true. Originally, it returned true the attribute was explicitly specified in the source code or a script, and false if its value came from the default one defined the document's DTD.
Property. This property always returns true. Originally, it returned true the attribute was explicitly specified in the source code or a script, and false if its value came from the default one defined the document's DTD.
(value this)
Property.
The attribute's value.
Property. The attribute's value.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close