Why don’t anchor links work in D2L?

If you add anchor links to an HTML page in D2L, they won’t work if you use the <a name> tag, because the XML empty element syntax isn’t supported in text/html (it only worked in HTML4). You need to use <a id> instead.