Skip to content

Paragraphs in search results are not identified as <p> in the markup #8380

Closed
@jonels-msft

Description

@jonels-msft
Contributor

Problem

Paragraphs in search results are stored in divs rather than <p>. This withholds information from screenreaders which would help orient users.

Relevant code:

var rv = $('<div class="context"></div>').text(excerpt);

Reproducible Project

https://docs.citusdata.com/en/v9.3/search.html?q=azure&check_keywords=yes&area=default#

Error Logs/Results

paragraphs - MAS 1 3 1-Paragraph content are programmatically not defined

Expected Results

Use true paragraphs, as described in WCAG 1.3.1

Environment Info

  • Python Version: 3.7.7
  • Sphinx Version: 1.4.9
  • RTD Theme Version: 0.2.4

Activity

modified the milestones: 3.4.0, 4.0.0 on Nov 8, 2020
added a commit that references this issue on Nov 8, 2020

Fix sphinx-doc#8380: html search: search results are wrapped with <p>…

339cab7
added a commit that references this issue on Nov 12, 2020

Merge pull request #8386 from tk0miya/8380_wrap_search_results_with_p

0ff3232
added a commit that references this issue on Mar 11, 2021
3134085
added 2 commits that reference this issue on May 9, 2021

Fix sphinx-doc#8380: html search: tags for search result are broken

7516147

Merge pull request #9192 from tk0miya/8380_broken_search_tags

5b994fc
locked as resolved and limited conversation to collaborators on Jul 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @tk0miya@jonels-msft

        Issue actions

          Paragraphs in search results are not identified as <p> in the markup · Issue #8380 · sphinx-doc/sphinx