MCPcopy
hub / github.com/ampproject/worker-dom / label

Method label

src/worker-thread/dom/HTMLOptionElement.ts:25–27  ·  view source on GitHub ↗

* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement * @return label attribute value or text content if there is no attribute.

()

Source from the content-addressed store, hash-verified

23 * @return label attribute value or text content if there is no attribute.
24 */
25 get label(): string {
26 return this.getAttribute('label') || this.textContent;
27 }
28
29 /**
30 * @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement

Callers

nothing calls this directly

Calls 2

getAttributeMethod · 0.80
setAttributeMethod · 0.65

Tested by

no test coverage detected