I don't do scripting, but plenty of plain HTML.  Just wondering if your
browser is one of those that ignores empty elements?  (That sort of
thing, links to empty anchors being ignored, was an old complaint.)  If
you added some content, does it start to work.

e.g. <a id="a">something</a>


actually he is trying to resolve the  type of element using javascript, the browser can say: hey this is a paragraph even if it's empty, and hey this is a div, but he didn't recognize the anchor