How to remove these messages: Validation (XHTML 1.0 Trnasitional) Attribute 'dojo...'

674
3
01-03-2013 05:38 AM
JoseSanchez
Occasional Contributor III
Hi  all

how can I remove these messages:

Validation (XHTML 1.0 Trnasitional) Attribute 'dojo...' is not a valid element 'div'


thanks
0 Kudos
3 Replies
JakeSkinner
Esri Esteemed Contributor
Hi Jose,

If you're receiving these errors in Visual Studio, take a look at the thread here.  When defined in HTML, the dojo tag and any nonstandard attributes break the validity rules for most validators.
0 Kudos
JeffJacobson
Occasional Contributor III
Use the alternative "data-" versions of those attributes. Any attribute name starting prefixed with "data-" is valid under HTML5.

If you're using Visual Studio 2010, it still might give you warnings.  Visual Studio 2012 should recognize the "data-" attributes, though.
0 Kudos
__Rich_
Occasional Contributor III
Visual Studio 2012 should recognize the "data-" attributes, though.

Provided it's validating against the HTML5 schema, either force it through the validation settings or let it choose the schema automatically by specifying the correct DOCTYPE.
0 Kudos