Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Look for IDs on the first heading in a section, not just the section #19

Closed
dominykas opened this issue Jun 1, 2014 · 0 comments
Closed

Comments

@dominykas
Copy link
Member

From jyass...@google.com on April 29, 2013 00:38:08

If I have a document like:

<section>
  <h1 id="blah">Blah blah</h1>
</section>

h5o currently will generate an ID for the <section> element instead of re-using the one on the <h1>. I could move the id to the section, but that changes the effect of the CSS :target selector. Here's a patch to look a bit harder for IDs before generating one.

Attachment: lookHarderForIds.patch

Original issue: http://code.google.com/p/h5o/issues/detail?id=19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant