“Attribute name not allowed on element div at this point”

I found some entry from:

Markup Validation Error: “Attribute name not allowed on element at this point” error #HTML5

Just in case you intend to define a custom attribute, you have to prepend the attribute with “data-“.

So in this case, name would be: data-name="".

And you can reference it by 'div[data-name="value"]'.

Leave a Comment