-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make spec state that <meta name> must not be use for any new features with UA processing requirements, and instead new attribute should be minted: <meta newfeature=value> #2335
Comments
<meta name>
for any new features with UA processing requirements
I was reminded of this issue for WICG/client-hints-infrastructure#108 (comment) In w3ctag/design-reviews#702 (comment) @domenic says So, where do we stand wrt the proposal in this issue? Using |
Hmm yeah, I had forgotten about the alternative of introducing new attributes. I'm not too worried about longer feature names. We'll just use the usual I also am not sure I agree with the OP's assessment of Pros of new attributes:
Pros of continuing to use
|
I don’t have a strong opinion on using But I do still feel strongly that the spec should normatively state that |
I agree with those, and would add Pros of new attributes:
Pros of
On balance, I think There is also the option of adding new attributes to |
I think there's another wrinkle that any kind of policy done through markup ends up being a mutable policy (if only from unset to set), which is not always great. If we're going to make changes here let's add a warning against using these for policies. |
I think the remaining thing we might not have have consensus on is whether it's OK to use Clear examples of not impacting the processing model in this way are Part of this is presumably motivated by how, per #2229, we have dropped the registration requirement for I think I prefer not to go that far. I think it's OK to have What do others think? |
I think it'll be hard to predict that something will never "impact the processing model". If something like That is not to say that I think it's problematic that they use the |
…osals: whatwg/html#2335" to "See Also"
For context, see #2229 (comment) part of the comment thread starting around #2229 (comment).
We should consider having the spec state that when minting new features that have UA processing requirements and that need a markup hook,
meta[name]
must not be used.That is, we should have the spec make clear that the way
meta
has been used formeta[name=referrer]
,meta[name=theme-color]
,meta[name=viewport]
, andmeta[name=application-name]
is an anti-pattern that going forward we must avoid repeating.The alternative proposed is that we have the spec state that for any new features similar to
meta[name=referrer]
,meta[name=theme-color]
, ormeta[name=viewport]
that have UA processing requirements, a new separate new attribute formeta
should be minted for each such feature:The text was updated successfully, but these errors were encountered: