Search.Filter.HTML prefers the title from embedded SVG.
The SVG tag has several sub tags. One is <title>
which isn't correctly indexed, but instead interpreted as page title (if not overridden by other <title>
tags).
Example:
<svg viewBox="0 0 20 10" xmlns="http://www.w3.org/2000/svg">
<circle cx="5" cy="5" r="4">
<title>I'm a circle</title>
</circle>
<rect x="11" y="1" width="8" height="8">
<title>I'm a square</title>
</rect>
</svg>
If set in a html page the search phrase "circle" will not generate a hit, but "square" will (the last <title>
will be interpreted as the page title). In a CMS Page Editor page none of the <title>
words will be indexed, since the page title is set elsewhere.
See also CMS-698.
Edited by Henrik (Grubba) Grubbström