MDL-60492 core_tag: Fix title attribute
authorLeon Stringer <leon.stringer@ntlworld.com>
Wed, 5 Aug 2020 11:52:09 +0000 (12:52 +0100)
committerLeon Stringer <leon.stringer@ntlworld.com>
Wed, 5 Aug 2020 11:52:09 +0000 (12:52 +0100)
Attribute 'title' was specified inside a condition but closing `"` was
outside condition possibly resulting in <a href="..." class="..." ">.
Also moved </a> outside of condition to match <a>.

tag/templates/tagcloud.mustache

index b1e86ba..fde088d 100644 (file)
         {{#tags}}
             <li>
                 <a href="{{viewurl}}" class="{{#isstandard}}standardtag{{/isstandard}} s{{size}}"
-                    {{#count}}title="{{#str}}numberofentries, blog, {{count}}{{/str}}{{/count}}">
+                    {{#count}}title="{{#str}}numberofentries, blog, {{count}}{{/str}}"{{/count}}>
                         {{#flag}}
-                            <span class="flagged-tag">{{name}}</span></a>
+                            <span class="flagged-tag">{{name}}</span>
                         {{/flag}}
                         {{^flag}}
-                            {{name}}</a>
+                            {{name}}
                         {{/flag}}
+                </a>
             </li>
         {{/tags}}
     </ul>