Custom attribute vs data- * attribute

I know that data-Attributes is part of HTML 5. It seems like a good choice to use to serialize some data in markup. So there are people using data-bind = "xxx". But can I just use bind = "xxx". It seems to violate the scheme, specifications, but practically it works in all browsers. So my question is: what is the practical reason (not in theory) as the performance, that I should not use the customs attribute in the same way as bind = "xxx". I know that the bind attribute is not a reserved attribute.

thanks

0
source share
2 answers

, bind .

, . CSS , bind.

(, ) .

+3

, , , . , . , , . - . , , , , . US Code , , . , , , html- .., , . , ? W3 html, , , . , SEO , .. , , , . -, . , data- * ,

0

Source: https://habr.com/ru/post/1611807/


All Articles