asp.net mvc - Getting VS2010, and specifically a Razor view, to recognize custom "data-" attributes as valid -


i know html5 supports custom data-* attributes, , know vs2010 sp1 supposed have html5 support included.

however, when installed vs2010 sp1, i'm still getting validation errors on elements data-* attributes.

for example, this:

<a id="clicky" data-for="@model.id">clicky</a> 

yields following warning in vs2010:

validation (xhtml 1.0 transitional): attribute 'data-for' not valid attribute of element 'a'.

while understand these warnings , can safely ignored, i'm trying keep site standards compliant possible, , if warnings list spammed these warnings, won't able see valid warnings through noise.

am doing wrong, or must live seeing these warnings?

thanks in advance.

there little dropdown need change use html5 or others (xhtml 5, xhtml 1.1, etc.)

click view --> toolbars --> html source editing.

there dropdown. choose html5. the dropdown


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -