I am trying to get my pages validated using Markup Validation Service on http://validator.w3.org/
Validation against the XHTML 1.0 Strict doctype comes back with the following error:
... there is no attribute "data-gid"
… <a href="#" class="addToCartLink" data-gid="202">Add to Inquiry List</a>
Is there any way to workaround this error while staying on the same doctype - XHTML 1.0 Strict?
If not, what doctype should be used? What are implications of changing a doctype?
Many thanks, LG
Is there any way to workaround this error while staying on the same doctype - XHTML 1.0 Strict?
No.
If not, what doctype should be used?
The HTML 5 Doctype: <!DOCTYPE html>
What are implications of changing a doctype?
You get to validate against something that better represents what browsers actually do, but with tools that are still experimental (although not horribly so) and a specification that is still subject to change (although it is pretty stable now).