-
Bug
-
Resolution: Fixed
-
Minor
-
4.1.3
-
HQ 2023 Planning i2 Moppies
Many of the course format templates uses bad formatted element IDs.
For example, in the file `/course/format/templates/local/courseindex/cm.mustache`
the id name
id="{{uniqid}}-course-index-cm-{{id}}" |
where uniqid can be 0
according to the w3c spec for html, id's can not start with numbers.
https://www.w3.org/TR/2018/SPSD-html401-20180327/types.html#h-6.2
this could possibly cause some issues with styling or element selection. etc.
if uniqid is required, suggest use,
id="course-index-cm-{{uniqid}}-{{id}}" |
. instead, or just remove uniqid altogether.
- Testing discovered
-
MDL-78264 Some templates have incorrect "id"s starting with {{uniqid}}
-
- Open
-