Skip to content

HTMLLabelElement

Generated from idl/html.webidl when the site was built at 7aa23e2.

HTMLLabelElement is an interface in idl/html.webidl, inheriting HTMLElement, exposed in Window. What it does is on MDN; this page says what niso has of it.

The web features its members belong to, each with its Baseline status on the web and how much of the feature’s WPT suite passes in niso (see Web platform support).

Feature On the web In niso Members
<label> Widely available Partial 12% 9 of 73 subtests pass 2
constructor
[HTMLConstructor] constructor();
attribute
attribute DOMString htmlFor;
int32_t niso_html_label_element_get_html_for(niso_dom* dom, niso_handle self, niso_str* out);
int32_t niso_html_label_element_set_html_for(niso_dom* dom, niso_handle self, const char* value, size_t value_len);

Members the web has, by the BCD keys web-features 3.45.0 lists, that idl/ doesn’t declare. The list is partial: web-features lists only the keys it maps to a feature.

  • control (<label>)
  • form (<label>)