vs2013

时间:2018-10-10 06:04:03

标签: jquery html5

下面的警告消息来了。

Validation (XHTML 1.0 Transitional): Attribute 'data-limit' is not a valid attribute of element 'option'.

我也选择了此选项

"Tools -> Options -> Text Editor -> HTML(Web Forms) -> Validation -> XHTML5 (selected)

index.aspx页面中的以下代码。

<option value="<%: company.Uid %>" class="short" data-limit="52" title="<%: company.Country.Name + " " + "-" + " " + company.Name%>">
<%: company.Country.Name + " " + "-" + " " + company.Name%></option>

1 个答案:

答案 0 :(得分:0)

Switch to HTML 5,然后在模板中切换到HTML 5而不是Transitional:

<!DOCTYPE html>
<html>