MCPcopy Create free account
hub / github.com/HtmlUnit/htmlunit / setId

Method setId

src/main/java/org/htmlunit/html/DomElement.java:776–778  ·  view source on GitHub ↗

Sets the identifier this element. @param newId the new identifier of this element

(final String newId)

Source from the content-addressed store, hash-verified

774 * @param newId the new identifier of this element
775 */
776 public final void setId(final String newId) {
777 setAttribute(ID_ATTRIBUTE, newId);
778 }
779
780 /**
781 * Returns the first child element node of this element. null if this element has no child elements.

Callers

nothing calls this directly

Calls 1

setAttributeMethod · 0.95

Tested by

no test coverage detected