-
Notifications
You must be signed in to change notification settings - Fork 1.8k
links to empty local anchors not working #1554
Comments
Interesting. But your HTML is is a bit unusual. |
I investigated this in detail, and it appears that WebKit does not generate empty anchors in the render tree. Due to this, the element location is detected as (0, 0) with size 0x0 ie. the first page. If you put it any content (even a
I'll add documentation in the upcoming 0.12.1 release that this does not work, you have to give an ID/name to the visible element for it to be linked properly. |
I just ran into that problem and found this solution. So just to give my concrete example ... this did not work as an anchor:
But this did:
|
What tool did you use to produce the debugging output you wrote in your Mar 3, 2014 comment above? |
@daytonb: I used |
With 0.11.0 it was possible to use anchors to jump to different pages. With 0.12.x this is no longer working. I tested with the following HTML:
The text was updated successfully, but these errors were encountered: