I have an ASP.NET MVC 2 web site, the site.master
declares
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
but in the code I have
<td class='count-col' data-object-id='<%= Model.ObjectId %>'>
- Am I correct that attribute
data-object-id
is not valid in the declared doctype (XHTML)? - What are the downshots of having that violation?
- What is a good solution for this situation? Should I change DOCTYPE (what would be drawbacks)? Or should I come up with a different way to specify object-id on the element?
Note: object-id is used by a javascript function that shows a popup on <td>
hover.