[html5] HTML5 validator behavior issue
ian at hixie.ch
Mon Jan 17 11:18:07 PST 2011
On Mon, 17 Jan 2011, Gmail wrote:
> HTML5 specs says:
> 220.127.116.11 The style attribute
> Note: In particular, using the style attribute to hide and show content,
> or to convey meaning that is otherwise not included in the document,
> is non-conforming. (To hide and show content, use the hidden attribute.)
> The following HTML fragment
> <span style="display:none;">
> hidden content
> when submited to HTML5 validator return a valid document.
> So, what does means "non-conforming"? or is this a validator fail?
It's invalid, and it would be ideal if the validator said it was invalid,
but for various reasons it's essentially impossible for the validator to
detect this particular mistake.
Validators are not perfect, sadly. Really a validator should say "no
errors found", rather than "valid document", it's not quite the same.
Ian Hickson U+1047E )\._.,--....,'``. fL
http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,.
Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
More information about the Help