Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-587

Explanation.toHtml outputs invalid HTML

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • None
    • core/search
    • None

    Description

      If you want an HTML representation of an Explanation, you might call the toHtml() method. However, the output of this method looks like the following:

      <ul>
      <li>some value = some description</li>
      <ul>
      <li>some nested value = some description</li>
      </ul>
      </ul>

      As it is illegal in HTML to nest a UL directly inside a UL, this method will always output unparseable HTML if there are nested explanations.

      What Lucene probably means to output is the following, which is valid HTML:

      <ul>
      <li>some value = some description
      <ul>
      <li>some nested value = some description</li>
      </ul>
      </li>
      </ul>

      Attachments

        Activity

          People

            hossman Chris M. Hostetter
            trejkaz Trejkaz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: