HTMLLinkElement
Generated from idl/html.webidl when the site was built at 7aa23e2.
HTMLLinkElement is an interface in idl/html.webidl, inheriting HTMLElement, exposed in Window. It includes LinkStyle. What it does is on MDN; this page says what niso has of it.
relList, sizes and blocking are not supported yet.
Status
Section titled “Status”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 |
|---|---|---|---|
| <link> | Widely available | Partial 79% 117 of 148 subtests pass | 9 |
| Subresource integrity | Widely available | No WPT tests WPT maps no test to it | 1 |
| CSS object model | Widely available | Partial 55% 123 of 221 subtests pass | 1 |
Members
Section titled “Members”constructor
Section titled “constructor”[HTMLConstructor] constructor();attribute USVString href;int32_t niso_html_link_element_get_href(niso_dom* dom, niso_handle self, niso_str* out);int32_t niso_html_link_element_set_href(niso_dom* dom, niso_handle self, const char* value, size_t value_len);crossOrigin
Section titled “crossOrigin”attribute DOMString? crossOrigin;int32_t niso_html_link_element_get_cross_origin(niso_dom* dom, niso_handle self, niso_str* out);int32_t niso_html_link_element_set_cross_origin(niso_dom* dom, niso_handle self, const char* value, size_t value_len);attribute DOMString rel;int32_t niso_html_link_element_get_rel(niso_dom* dom, niso_handle self, niso_str* out);int32_t niso_html_link_element_set_rel(niso_dom* dom, niso_handle self, const char* value, size_t value_len);attribute DOMString as;int32_t niso_html_link_element_get_as(niso_dom* dom, niso_handle self, niso_str* out);int32_t niso_html_link_element_set_as(niso_dom* dom, niso_handle self, const char* value, size_t value_len);attribute DOMString media;int32_t niso_html_link_element_get_media(niso_dom* dom, niso_handle self, niso_str* out);int32_t niso_html_link_element_set_media(niso_dom* dom, niso_handle self, const char* value, size_t value_len);integrity
Section titled “integrity”attribute DOMString integrity;int32_t niso_html_link_element_get_integrity(niso_dom* dom, niso_handle self, niso_str* out);int32_t niso_html_link_element_set_integrity(niso_dom* dom, niso_handle self, const char* value, size_t value_len);hreflang
Section titled “hreflang”attribute DOMString hreflang;int32_t niso_html_link_element_get_hreflang(niso_dom* dom, niso_handle self, niso_str* out);int32_t niso_html_link_element_set_hreflang(niso_dom* dom, niso_handle self, const char* value, size_t value_len);attribute DOMString type;int32_t niso_html_link_element_get_type(niso_dom* dom, niso_handle self, niso_str* out);int32_t niso_html_link_element_set_type(niso_dom* dom, niso_handle self, const char* value, size_t value_len);disabled
Section titled “disabled”attribute boolean disabled;int32_t niso_html_link_element_get_disabled(niso_dom* dom, niso_handle self, bool* out);int32_t niso_html_link_element_set_disabled(niso_dom* dom, niso_handle self, bool value);readonly attribute CSSStyleSheet? sheet;int32_t niso_link_style_get_sheet(niso_dom* dom, niso_handle self, niso_handle* out);Not in niso yet
Section titled “Not in niso yet”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.
blocking(blocking=“render”)fetchPriority(Fetch priority)imageSizes(Preloading responsive images)imageSrcset(Preloading responsive images)referrerPolicy(Referrer policy)relList(<link>)sizes(<link>)