Uploaded image for project: 'Magnolia Demo Projects'
  1. Magnolia Demo Projects
  2. MGNLDEMO-144

Make the w3 validation proof: Mainly the search result page.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Neutral Neutral
    • None
    • 0.8, 0.8.1, 0.9
    • magnolia-travels

      Checking the travels demo's search result page w3 validation errors show up:
      https://validator.w3.org/nu/?doc=https%3A%2F%2Fdemopublic.magnolia-cms.com%2Ftravel%2Fmeta%2Fsearch-results.html%3FqueryStr%3Dtours

      One reason is a missing <span> in the searchResults.ftl (see print screen).
      But also because it uses result html snippets within "<div class=\"excerpt\">" created by info.magnolia.jackrabbit.lucene.SearchHTMLExcerpt there are invalid strcutres creaded, such as P-tags around a div:

      <p class="list-group-item-text"><div class="excerpt"><span class="excerpt-fragment">... erhalten.</p>
                 below <p>Do you have a question about one of our <strong>tours</strong>? Would you like to customize a tour - or looking for a trip you just</span><span class="excerpt-fragment">... on our website?</p>
      
                  <p>Do you have a question about how our <strong>tours</strong> work, about a booking you&rsquo;ve placed or about payment? Or are you on ...</span></div></p>
      

      We need to check if this can be resolved nicer.

        Acceptance criteria

              Unassigned Unassigned
              cringele Christian Ringele
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD