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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.5, 3.1
    • Fix Version/s: 3.0.6, 3.1.2
    • Component/s: JavaScript
    • Labels:
    • Testing Instructions:
      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
    • Affected Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-55771_master

      Description

      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.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                12/Sep/16