Is this true, or should I be using a different doctype?
I'm using the w3c validator service:
http://validator.w3.org/check
Here are the items that I frequently run into (and will fail):
- If I include more than one h:form element on a page then validation will fail due to each form having a hidden field with the same id: javax.faces.ViewState
- The hidden field in each form will have an attribute named autocomplete="off". This attribute is not a valid attribute (although is widely supported and is used to instruct browsers to not use browser's built-in autocomplete feature; this will be included in HTML5 spec I believe).