W3C validation error with data-href

后端 未结 4 1087
时光说笑
时光说笑 2021-01-17 00:46

I am getting one validation error due to my use of data-href=\"\" in the context of making a whole DIV clickable. The JS and HTML is below. What could I do to make this W3C

4条回答
  •  灰色年华
    2021-01-17 01:18

    If possible, you should consider using a doctype that supports data-* attributes. For HTML5, that's:

    
    

提交回复
热议问题