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

Explanation.toHtml outputs invalid HTML

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: None
    • Component/s: core/search
    • Labels:
      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

            • Assignee:
              hossman Hoss Man
              Reporter:
              trejkaz Trejkaz
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: