In general, the question in the title
Whether user attributes without data- prefix will affect the operation
In general, the question in the title
Whether user attributes without data- prefix will affect the operation
No, they will not. The HTML 5 specification does not imply any attribute names on the elements. The only difference is that your attributes without data- will not automatically fall into the dataset element. Those. the data-xxx type attribute applied to the elem element will be available via the DOM in the form of elem.dataset.xxx , for more details on MDN .
dataset mean? - ishidex2Source: https://ru.stackoverflow.com/questions/678473/
All Articles
data-- andreymal