Liking cljdoc? Tell your friends :D

web.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

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
raw docstring

local-namecljs

(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`
sourceraw docstring

namecljs

(name this)

Property.

The attribute's name.

Property.

The attribute's name.
sourceraw docstring

namespace-uricljs

(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`
sourceraw docstring

owner-elementcljs

(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).
sourceraw docstring

prefixcljs

(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`
sourceraw docstring

set-name!cljs

(set-name! this val)

Property.

The attribute's name.

Property.

The attribute's name.
sourceraw docstring

set-owner-element!cljs

(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).
sourceraw docstring

set-specified!cljs

(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.
sourceraw docstring

set-value!cljs

(set-value! this val)

Property.

The attribute's value.

Property.

The attribute's value.
sourceraw docstring

specifiedcljs

(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.
sourceraw docstring

valuecljs

(value this)

Property.

The attribute's value.

Property.

The attribute's value.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close