Forum How do I...?

identical links working/not working?

jablko
http://www.sfu.ca/~jdbates/tmp/css/201001080/index.html

^ When I process this HTML input with Prince 7,

$ prince index.html


- I get this PDF, http://www.sfu.ca/~jdbates/tmp/css/201001080/index.pdf

The first link works,

<a href="#aaa">aaa</a>
[...]
<section id="aaa">aaa</section>


- and the second link works,

<a href="#bbb">bbb</a>
[...]
  <section id="bbb">
    <div>
      bbb
    </div>
  </section>


- but the third link doesn't work : (

<a href="#ccc">ccc</a>
[...]
  <section id="ccc">
    <div>
      ccc
    </div>
  </section>


Clicking the first and second links in my PDF reader jump to the link target, but clicking the third link does nothing

I can't see any difference between the second and third links - so I'm trying to understand why this inconsistent behavior?
mikeday
It's a bug related to linking to span elements. If you add a CSS rule to treat section elements as blocks it will fix the problem:
section { display: block }
mikeday
We've added this rule to the default HTML style sheet in Prince 7.1, along with other commonly used HTML5 elements.