You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
<link>.as says default is the empty string, but we don't normally call out default values #3489
clarificationStandard could be clearergood first issueIdeal for someone new to a WHATWG standard or software projecttopic: linksLinks and link types: a, area, link, rel values and hyperlink auditingtopic: resource hints (inc. preload)preload, modulepreload, prefetch, preconnect, dns-prefetch, early hints and speculation rules
Definition of the as content attribute which the as IDL attribute reflects:
The as attribute specifies the potential destination for a preload request for the resource given by the href attribute. It is an enumerated attribute. Each potential destination is a keyword for this attribute, mapping to a state of the same name.
Definition of potential destination:
A potential destination is "fetch" or a destination which is not the empty string.
I think the comment is a bit confusing, but, it's still valid.
If a reflecting IDL attribute is a DOMString attribute whose content attribute is an enumerated attribute, and the IDL attribute is limited to only known values, then, on getting, the IDL attribute must return the conforming value associated with the state the attribute is in (in its canonical case), if any, or the empty string if the attribute is in a state that has no associated keyword value or if the attribute is not in a defined state (e.g. the attribute is missing and there is no missing value default). On setting, the content attribute must be set to the specified new value.
changed the title [-]<link>.as says default is the empty string, but that is not an allowed value[/-][+]<link>.as says default is the empty string, but we don't normally call out default values[/+]on Feb 21, 2018
clarificationStandard could be clearergood first issueIdeal for someone new to a WHATWG standard or software projecttopic: linksLinks and link types: a, area, link, rel values and hyperlink auditingtopic: resource hints (inc. preload)preload, modulepreload, prefetch, preconnect, dns-prefetch, early hints and speculation rules
Activity
domenic commentedon Feb 21, 2018
I think the comment is a bit confusing, but, it's still valid.
annevk commentedon Feb 21, 2018
Ah indeed. Okay.
domenic commentedon Feb 21, 2018
We may want to remove the comment anyway, since we don't generally add that in most places, so it feels misleading to call out
asspecifically.annevk commentedon Feb 21, 2018
To fix this issue, remove
// (default "")from the IDL fragment in thesourceresource.[-]<link>.as says default is the empty string, but that is not an allowed value[/-][+]<link>.as says default is the empty string, but we don't normally call out default values[/+]Remove a confusing comment on `<link>.as`
Editorial: remove a confusing comment on <link>.as
Editorial: remove a confusing comment on <link>.as