script: implement HTMLHyperlinkElementUtils for HTMLAreaElement (#35482)

This makes some common functionality in HTMLAreaElement and
HTMLAnchorElement shared code.

Signed-off-by: Shane Handley <shanehandley@fastmail.com>
This commit is contained in:
shanehandley 2025-02-16 20:54:31 +11:00 committed by GitHub
parent 6d6070242b
commit 5ab3641a8e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 701 additions and 1924 deletions

View file

@ -232,7 +232,7 @@ DOMInterfaces = {
},
"HTMLAreaElement": {
"canGc": ["SetRel"]
"canGc": ['SetText', 'SetRel', 'SetHref', 'SetHash', 'SetHost', 'SetHostname', 'SetPassword', 'SetPathname', 'SetPort', 'SetProtocol', 'SetSearch', 'SetUsername']
},
"HTMLBodyElement": {

View file

@ -25,7 +25,7 @@ interface HTMLAreaElement : HTMLElement {
[CEReactions] attribute DOMString referrerPolicy;
// hreflang and type are not reflected
};
//HTMLAreaElement includes HTMLHyperlinkElementUtils;
HTMLAreaElement includes HTMLHyperlinkElementUtils;
// https://html.spec.whatwg.org/multipage/#HTMLAreaElement-partial
partial interface HTMLAreaElement {