-
Notifications
You must be signed in to change notification settings - Fork 61
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
[questions/qa-translate-flag] Empty string for the translate attribute #528
Comments
I'm inclined no to. This article is aimed at content authors, rather than a complete description of how to process the attribute as a machine. I can't see a reason why a content author would need to know that a missing value will simply not change the current setting. (Note btw that the blank string is called the 'missing value default' and the 'invalid value default', so i think it's also ok to say that there are only 2 values (even though, for the parser, there are 3 states). |
An empty value means
I don't think that's the case. The empty string is a valid keyword. Note that the missing value default applies only when the attribute is missing, not when it is present with an empty string value. (See the second note in HTML § 2.3.3 Keywords and enumerated attributes.) The 'invalid value default' state do not apply in this case either. Many other HTML attributes have similar behaviour, and I've seen many content authors rely on this behaviour, since attributes without a value are implied to be an empty string by the HTML standard, like:
In this case, |
[source] (https://www.w3.org/International/questions/qa-translate-flag) [en]
From the HTML Standard:
Should we mention that the value of the
translate
attribute can also be an empty string?The text was updated successfully, but these errors were encountered: