I didn't get you right at first, let me try again. You say:
I can't just change all the name attributes to id attributes because it becomes an empty hyperlink rather than a named anchor (I've also tried, the display: block no longer gets applied to it).
I don't really understand where is the problem here or why would you like it to use display: block
. Its purpose as I and apparently the W3C see it is a placeholder, it should act as an anchor like it did in HTML4, only using id
instead of the name
attribute.
If you'll run this simple html through the W3C's markup validator you'll see it is valid html5.
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<a id="test"></a>
</body>
</html>
So it comes down to these two options:
a. I didn't get something right, I'm sorry and hope you'll be able to correct my mistake.
b. You are going out of your way to accomplish things that could be easily achieved.