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.
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.