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

Sphinx producing duplicate id attributes, HTML fails validation. #47996

Closed
gjhiggins mannequin opened this issue Sep 1, 2008 · 4 comments
Closed

Sphinx producing duplicate id attributes, HTML fails validation. #47996

gjhiggins mannequin opened this issue Sep 1, 2008 · 4 comments
Assignees
Labels
docs Documentation in the Doc dir type-bug An unexpected behavior, bug, or error

Comments

@gjhiggins
Copy link
Mannequin

gjhiggins mannequin commented Sep 1, 2008

BPO 3746
Nosy @birkenfeld
Files
  • index.html: generated html file
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/birkenfeld'
    closed_at = <Date 2008-09-09.22:07:44.500>
    created_at = <Date 2008-09-01.10:02:16.707>
    labels = ['type-bug', 'docs']
    title = 'Sphinx producing duplicate id attributes, HTML fails validation.'
    updated_at = <Date 2008-09-09.22:07:44.499>
    user = 'https://bugs.python.org/gjhiggins'

    bugs.python.org fields:

    activity = <Date 2008-09-09.22:07:44.499>
    actor = 'georg.brandl'
    assignee = 'georg.brandl'
    closed = True
    closed_date = <Date 2008-09-09.22:07:44.500>
    closer = 'georg.brandl'
    components = ['Documentation tools (Sphinx)']
    creation = <Date 2008-09-01.10:02:16.707>
    creator = 'gjhiggins'
    dependencies = []
    files = ['11415']
    hgrepos = []
    issue_num = 3746
    keywords = []
    message_count = 4.0
    messages = ['72221', '72223', '72736', '72925']
    nosy_count = 2.0
    nosy_names = ['georg.brandl', 'gjhiggins']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue3746'
    versions = ['Python 2.5']

    @gjhiggins
    Copy link
    Mannequin Author

    gjhiggins mannequin commented Sep 1, 2008

    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.

    @gjhiggins gjhiggins mannequin assigned birkenfeld Sep 1, 2008
    @gjhiggins gjhiggins mannequin added docs Documentation in the Doc dir type-bug An unexpected behavior, bug, or error labels Sep 1, 2008
    @gjhiggins
    Copy link
    Mannequin Author

    gjhiggins mannequin commented Sep 1, 2008

    Um, hang fire. I need to do more analysis in order to reproduce the
    problem properly.

    @gjhiggins
    Copy link
    Mannequin Author

    gjhiggins mannequin commented Sep 7, 2008

    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">

    @birkenfeld
    Copy link
    Member

    Thanks for the report! This was due to a docutils 0.4/0.5
    incompatibility, which should now be fixed in r66355.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    docs Documentation in the Doc dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant