HTMLAnchorElement
Generated from idl/html.webidl when the site was built at 7aa23e2.
HTMLAnchorElement is an interface in idl/html.webidl, inheriting HTMLElement, exposed in Window. It includes HTMLHyperlinkElementUtils. What it does is on MDN; this page says what niso has of it.
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 |
|---|---|---|---|
| <a> | Widely available | Partial 75% 148 of 196 subtests pass | 17 |
| download | Widely available | Not yet 0 of 4 subtests pass | 1 |
Members
Section titled “Members”constructor
Section titled “constructor”[HTMLConstructor] constructor();target
Section titled “target”attribute DOMString target;int32_t niso_html_anchor_element_get_target(niso_dom* dom, niso_handle self, niso_str* out);int32_t niso_html_anchor_element_set_target(niso_dom* dom, niso_handle self, const char* value, size_t value_len);download
Section titled “download”attribute DOMString download;int32_t niso_html_anchor_element_get_download(niso_dom* dom, niso_handle self, niso_str* out);int32_t niso_html_anchor_element_set_download(niso_dom* dom, niso_handle self, const char* value, size_t value_len);attribute DOMString rel;int32_t niso_html_anchor_element_get_rel(niso_dom* dom, niso_handle self, niso_str* out);int32_t niso_html_anchor_element_set_rel(niso_dom* dom, niso_handle self, const char* value, size_t value_len);hreflang
Section titled “hreflang”attribute DOMString hreflang;int32_t niso_html_anchor_element_get_hreflang(niso_dom* dom, niso_handle self, niso_str* out);int32_t niso_html_anchor_element_set_hreflang(niso_dom* dom, niso_handle self, const char* value, size_t value_len);attribute DOMString type;int32_t niso_html_anchor_element_get_type(niso_dom* dom, niso_handle self, niso_str* out);int32_t niso_html_anchor_element_set_type(niso_dom* dom, niso_handle self, const char* value, size_t value_len);attribute DOMString text;int32_t niso_html_anchor_element_get_text(niso_dom* dom, niso_handle self, niso_str* out);int32_t niso_html_anchor_element_set_text(niso_dom* dom, niso_handle self, const char* value, size_t value_len);stringifier attribute USVString href;int32_t niso_html_hyperlink_element_utils_get_href(niso_dom* dom, niso_handle self, niso_str* out);int32_t niso_html_hyperlink_element_utils_set_href(niso_dom* dom, niso_handle self, const char* value, size_t value_len);origin
Section titled “origin”readonly attribute USVString origin;int32_t niso_html_hyperlink_element_utils_get_origin(niso_dom* dom, niso_handle self, niso_str* out);protocol
Section titled “protocol”attribute USVString protocol;int32_t niso_html_hyperlink_element_utils_get_protocol(niso_dom* dom, niso_handle self, niso_str* out);int32_t niso_html_hyperlink_element_utils_set_protocol(niso_dom* dom, niso_handle self, const char* value, size_t value_len);username
Section titled “username”attribute USVString username;int32_t niso_html_hyperlink_element_utils_get_username(niso_dom* dom, niso_handle self, niso_str* out);int32_t niso_html_hyperlink_element_utils_set_username(niso_dom* dom, niso_handle self, const char* value, size_t value_len);password
Section titled “password”attribute USVString password;int32_t niso_html_hyperlink_element_utils_get_password(niso_dom* dom, niso_handle self, niso_str* out);int32_t niso_html_hyperlink_element_utils_set_password(niso_dom* dom, niso_handle self, const char* value, size_t value_len);attribute USVString host;int32_t niso_html_hyperlink_element_utils_get_host(niso_dom* dom, niso_handle self, niso_str* out);int32_t niso_html_hyperlink_element_utils_set_host(niso_dom* dom, niso_handle self, const char* value, size_t value_len);hostname
Section titled “hostname”attribute USVString hostname;int32_t niso_html_hyperlink_element_utils_get_hostname(niso_dom* dom, niso_handle self, niso_str* out);int32_t niso_html_hyperlink_element_utils_set_hostname(niso_dom* dom, niso_handle self, const char* value, size_t value_len);attribute USVString port;int32_t niso_html_hyperlink_element_utils_get_port(niso_dom* dom, niso_handle self, niso_str* out);int32_t niso_html_hyperlink_element_utils_set_port(niso_dom* dom, niso_handle self, const char* value, size_t value_len);pathname
Section titled “pathname”attribute USVString pathname;int32_t niso_html_hyperlink_element_utils_get_pathname(niso_dom* dom, niso_handle self, niso_str* out);int32_t niso_html_hyperlink_element_utils_set_pathname(niso_dom* dom, niso_handle self, const char* value, size_t value_len);search
Section titled “search”attribute USVString search;int32_t niso_html_hyperlink_element_utils_get_search(niso_dom* dom, niso_handle self, niso_str* out);int32_t niso_html_hyperlink_element_utils_set_search(niso_dom* dom, niso_handle self, const char* value, size_t value_len);attribute USVString hash;int32_t niso_html_hyperlink_element_utils_get_hash(niso_dom* dom, niso_handle self, niso_str* out);int32_t niso_html_hyperlink_element_utils_set_hash(niso_dom* dom, niso_handle self, const char* value, size_t value_len);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.
attributionSourceId(Private click measurement)attributionSrc(Attribution reporting)interestForElement(Interest invokers)ping(ping)referrerPolicy(Referrer policy)relList(<a>)toString(<a>)