jQuery “data” attribute doesn't W3C validate

前端 未结 1 559
盖世英雄少女心
盖世英雄少女心 2021-01-24 09:33

I\'m wondering why this bit of html doesn\'t validate (XHTML 1.0 transitional) because of the \"data\" attribute. I\'ve searched around for answers, and I\'m not using the jQuer

1条回答
  •  不思量自难忘°
    2021-01-24 09:51

    Because data attributes are part of the HTML 5 spec. Use to specify the HTML 5 doctype.

    0 讨论(0)
提交回复
热议问题