-
Task
-
Resolution: Unresolved
-
Minor
-
None
-
4.5.4, 5.0
-
None
-
MOODLE_405_STABLE, MOODLE_500_STABLE
The following line in blocks/recentlyaccesseditems/templates/view-cards.mustache
<a href="{{{viewurl}}}" title="{{{name}}}"> |
can break the tooltip.
Using triple bracing to display the title attribute displays the raw (unescaped) activity name and this causes issues if the activity name contains quotes (").
For example: The activity name is A1: "ABC"
The tooltip on hover is just A1: instead of A1: "ABC"
The HTML looks like this:
Another issue with the unescaped content has already been reported in MDL-79994.
- Discovered while testing
-
MDL-80276 Improve long activity name display in upcoming events block
-
- Open
-
- has a non-specific relationship to
-
MDL-85452 Improve long activity name display in the "Recently accessed items" block
-
- Open
-
- has been marked as being related by
-
MDL-79994 Remove some instances of unnecessary raw content in Mustache templates
-
- Open
-