Issue 3746: Sphinx producing duplicate id attributes, HTML fails validation.
Issue3746
Created on 2008-09-01 10:02 by gjhiggins, last changed 2022-04-11 14:56 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| index.html | gjhiggins, 2008-09-07 10:50 | generated html file | ||
| Messages (4) | |||
|---|---|---|---|
| msg72221 - (view) | Author: Graham Higgins (gjhiggins) | Date: 2008-09-01 10:02 | |
It seems Sphinx creates duplicate ids for <span> elements in Permalink headers. This causes Sphinx-generated HTML to fail W3C validation. Example: http://docs.python.org/dev/tutorial/interpreter.html where "id2" appears twice. |
|||
| msg72223 - (view) | Author: Graham Higgins (gjhiggins) | Date: 2008-09-01 10:18 | |
Um, hang fire. I need to do more analysis in order to reproduce the problem properly. |
|||
| msg72736 - (view) | Author: Graham Higgins (gjhiggins) | Date: 2008-09-07 10:50 | |
Now confirmed. To reproduce, run sphinx-quickstart with project name "Test", accepting all defaults. Execute "make html", examine .build/html/index.html to find: <div class="section" id="welcome-to-test-s-documentation"> <h1 id="welcome-to-test-s-documentation"> |
|||
| msg72925 - (view) | Author: Georg Brandl (georg.brandl) * ![]() |
Date: 2008-09-09 22:07 | |
Thanks for the report! This was due to a docutils 0.4/0.5 incompatibility, which should now be fixed in r66355. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:56:38 | admin | set | github: 47996 |
| 2008-09-09 22:07:44 | georg.brandl | set | status: open -> closed resolution: fixed messages: + msg72925 |
| 2008-09-07 10:50:49 | gjhiggins | set | files:
+ index.html messages: + msg72736 |
| 2008-09-01 10:18:13 | gjhiggins | set | messages: + msg72223 |
| 2008-09-01 10:02:16 | gjhiggins | create | |
