Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-6390

'align' attribute on image HTML tag is deprecated

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Won't Fix
    • None
    • None
    • None
    • None

    Description

      In the Xinha editor one can select an alignment of an image when inserting the image.

      In the html code you can see this represents as the 'align = " ... " ' attribute on the <img>
      This attribute is depricated (in XHTML Strict, and HTML5), plus there are some bugs with it in IE7,
      meaning this will not validate.

      Suggestion: Upon rendering an image from a xinha field, check if there is an align attribute on the <img> and replace this with a class "alignright" (or left or something similar). And let the CSS of the website render it properly.
      Other solutions are welcome too. But since we are going to build new sites in HTML5 and some clients need to have valid code (for Web Content Accesibility Guideline validation for example), we cannot continue using this 'align' attribute.

      See screeshot 'align-depricated.png' to see the error that the validator throws when Im aligning an image to the right (screenshot image-align-right.png) and validating it with the HTML5 doctype

      Attachments

        Activity

          People

            oscholten Oscar Scholten (Inactive)
            jdegooijer Joeri de Gooijer
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: