If these were generated by an automatic program then the semantics is causing you to see different outcomes that go to essentially the same place. The h4 id is a normal target for forward links in TOC's while the id generated inside the href statement was probably generated to allow for a return link to allow you to return after the jump.
Dale
|