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
The attribute's keywords are the empty string, yes, and no. The empty string and the yes keyword map to the yes state. The no keyword maps to the no state. In addition, there is a third state, the inherit state, which is the missing value default and the invalid value default.
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:
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).
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.
An empty value means yes, and no translate attribute means inheriting the translate attribute value of the parent element, so they are different.
(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).
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.
People use <input disabled> for <input disabled="">
In this case, <span translate> <=> <span translate=""> <=> <span translate="yes"> ≠ <span>, since the parent element of the <span> may have translate="no".
[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: