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

References to sections with manually assigned section ids not shown #270

Closed
sspeiche opened this issue Sep 17, 2013 · 3 comments
Closed

Comments

@sspeiche
Copy link
Contributor

The test case I have shows simply where empty a tag reference to section doesn't resolve, see attached test case....

<title>Test</title> <script src='http://www.w3.org/Tools/respec/respec-w3c-common' async class='remove'></script> <script class='remove'> var respecConfig = { specStatus: "FPWD", shortName: "unicorn-dahuts", editors: [ { name: "Robin Berjon", url: "http://berjon.com/", company: "W3C", companyURL: "http://w3c.org/" } ], wg: "Cryptozoology Working Group", wgURI: "http://www.w3.org/2017/cryptozoology/", wgPublicList: "public-animals", wgPatentURI: "http://www.w3.org/2004/01/pp-impl/424242/status", }; </script>

sec1

sec1 auto-assigned id

  <section>
     <h2 id='sec2'>sec2</h2>
     <p>sec2 manually-assigned id</p>       
  </section>

  <section>
    <h2>sec3</h2>
    <p>sec1 before a tag --}<a href='#sec1'></a>{-- sec1 after a tag</p>
    <p>sec2 before a tag --}<a href='#sec2'></a>{-- sec2 after a tag</p>

  </section>
@sspeiche
Copy link
Contributor Author

So found out a little bit more regarding this problem, the current LDP spec had id attributes on the hN tags and not the section tags. This used to work. Should I expect this to work again or should I move my ids from my hN tags to my section tags?

@sspeiche
Copy link
Contributor Author

Feel free to close if not a problem you want to fix, I have fixed up our editor's draft. It might be helpful to update the example and user's guide

@darobin
Copy link
Member

darobin commented Sep 19, 2013

Normally IDs on section elements are recommended, I wasn't aware that it used to work on hN elements (but it may well be the case). I don't feel a strong urge to fix this right now, but I will certainly take pull requests.

@darobin darobin closed this as completed Sep 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants