Page binding error Visual Studio 2010 HTML validation error
I have several <a name="something"></a> entries in my html page to enable page bindings; Visual Studio 2010 (for the purpose of HTML 4.01 or HTML 5) underlines the name attribute and displays the warning "Element name is outdated or non-standard."
Am I doing something wrong? Is the legacy anchor on the page?
Page bindings should now be done with ID attributes.
This is what was deprecated in the draft HTML 5 :
Authors should not provide a name attribute for elements. If an attribute is present, its value should not be an empty string and should not be equal to the value of any of the identifiers in the home subtree of the element other than the own identifier of the element, if any, and not equal to the value of any other name attributes for the elements in the home subtree of the element. If this attribute is present and the element has an identifier, the attribute value must be equal to the identifier of the element. In earlier versions of the language, this attribute was intended to indicate possible targets for fragment identifiers in URLs. Instead, use the id attribute.
The name attribute is really valid HTML 4.01, so I'm not sure what Visual Studio does (possibly without applying the correct validation).