MCPcopy
hub / github.com/processing/p5.js / setAttribute

Method setAttribute

src/io/p5.XML.js:959–961  ·  view source on GitHub ↗

* Sets an attribute to a given value. * * The first parameter, `name`, is a string with the name of the attribute * being set. * * The second parameter, `value`, is the attribute's new value. For example, * calling `myXML.setAttribute('id', 123)` sets the `id` attribute to the *

(name, value)

Source from the content-addressed store, hash-verified

957 * }
958 */
959 setAttribute(name, value) {
960 this.DOM.setAttribute(name, value);
961 }
962
963 /**
964 * Returns the element's content as a `String`.

Callers 15

wFunction · 0.80
AFunction · 0.80
modernizr.jsFile · 0.80
p5.Element.jsFile · 0.80
dom.jsFile · 0.80
createHTMLSelectFunction · 0.80
createRadioElementFunction · 0.80
sizeMethod · 0.80
attributeMethod · 0.80
domFunction · 0.80
loopMethod · 0.80
autoplayMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected