Skip to content

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.

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
constructor
[HTMLConstructor] constructor();
attribute
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);
attribute download: Not yet
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
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);
attribute
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
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
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);
attribute from HTMLHyperlinkElementUtils
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);
attribute from HTMLHyperlinkElementUtils
readonly attribute USVString origin;
int32_t niso_html_hyperlink_element_utils_get_origin(niso_dom* dom, niso_handle self, niso_str* out);
attribute from HTMLHyperlinkElementUtils
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);
attribute from HTMLHyperlinkElementUtils
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);
attribute from HTMLHyperlinkElementUtils
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 from HTMLHyperlinkElementUtils
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);
attribute from HTMLHyperlinkElementUtils
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 from HTMLHyperlinkElementUtils
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);
attribute from HTMLHyperlinkElementUtils
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);
attribute from HTMLHyperlinkElementUtils
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 from HTMLHyperlinkElementUtils
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);

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>)