Basically a simple question I'm not really sure where to search after;
Is it safe to write checked
as an attribute instead of checked="checked"
without becoming incompatible with certain browsers? This also includes selected
, disabled
, readonly
and so on.
It just feels like mindless repetition to type in the same thing twice because of habit, so if anyone knows if this can be skipped without any consequences or not, please share your knowledge.
Example:
Can I always use <input type="checkbox" checked />
instead of <input type="checkbox" checked="checked" />
?
This answer is answered to a certain extent in another question. But apart from XHTML, I don't see any answers regarding browser compatibility and the like.