Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-15718

WordToImage : IMG tag generated by operator wordtoimage lacks alt attribute

    XMLWordPrintable

Details

    Description

      The image tag generated should have an alt attribute to be XHTML 1.0 Transitionnal compliant.

      File : kernel/common/ezwordtoimageoperator.php
      Line : 75

      Code should be :

                      foreach( $replaceIcon as $icon )
                      {
                          $icons[] = '<img src="' . $wwwDirPrefix . $iconRoot .'/' . $icon . '" alt="'. $replaceText .'"/>';
                      }
      

      Patch attached

      Steps to reproduce

      Use wordtoimage template operator with a text containing a pattern matched in wordtoimage.ini

      Attachments

        Activity

          People

            andre1 andre1
            9e9f2c72-d8ff-4ec0-b8df-c5a744234b9a@accounts.ibexa.co Jérôme Vieilledent
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: