Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-55771

JS implementation of mustache {{pix}} helper does not add title

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.0.6, 3.1.2
    • 3.0.5, 3.1
    • JavaScript
    • MOODLE_30_STABLE, MOODLE_31_STABLE
    • MOODLE_30_STABLE, MOODLE_31_STABLE
    • MDL-55771_master
    • Hide
      Test 1
      1. Log in as admin.
      2. Visit Development > Template library.
      3. View the template 'core_tag/tagflag'.
      4. Inspect the HTML for the icon.
      5. Confirm there is a 'title' attribute on the 'img' icon.
      Test 2
      1. Repeat the above in your favourite screen reader.
      2. VERIFY: the reading behaviour of the icon is sane
      Show
      Test 1 Log in as admin. Visit Development > Template library. View the template 'core_tag/tagflag'. Inspect the HTML for the icon. Confirm there is a 'title' attribute on the 'img' icon. Test 2 Repeat the above in your favourite screen reader. VERIFY: the reading behaviour of the icon is sane

      The title attribute is not added to the 'img' tag if we supply an alt when the template is rendered in JS, but it is when rendered in PHP.

            markn Mark Nelson
            markn Mark Nelson
            cameron1729 cameron1729
            Dan Poltawski Dan Poltawski
            Andrew Lyons Andrew Lyons
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.