-
Bug
-
Resolution: Duplicate
-
Neutral
-
None
-
0.8, 0.8.1, 0.9
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’ve placed or about payment? Or are you on ...</span></div></p>
We need to check if this can be resolved nicer.
- duplicates
-
MGNLDEMO-135 Search result page might brake layout due to broken HTML markup
- Closed
- is related to
-
MAGNOLIA-6548 SearchHTMLExcerpt: Should also check for html end-tags and not closed openening tags and remove them
- Accepted