Image attributes get alphabetized when I save an XSLT format

Michael McGinnis's Avatar

Michael McGinnis

Nov 02, 2011 @ 07:37 PM

When I type
<img src="images/ads/{image/name}" height="234" width="280 alt="{title}" />

it gets changed to
<img alt="{title}" height="234" src="images/ads/{image/name}" width="280 "/>

My supervisor noticed that the attributes are being alphabetized. If I add style, it comes after src and before width. But for readability, I'd like the attributes to stay in the order I typed them, so that src is first and height and width are together.

  1. 1 Posted by Joel on Nov 04, 2011 @ 08:16 PM

    Joel's Avatar

    Hi Michael,

    Does this affect the rendering at all, or is this just a readability issue? I'm pretty sure TidyHTML is causing this issue, but just to be sure, could you try this with TidyHTML disabled for this particular submission? You can uncheck "TidyHTML" at the bottom of any page under "Advanced".

    Thanks!

  2. 2 Posted by Michael McGinni... on Nov 04, 2011 @ 09:53 PM

    Michael McGinnis's Avatar

    It only affects the readability, though a similar problem affects the rendering, because it moves my METATAG region from the head into the body.

    Here are my Advanced Options on my Template (no TidyHTML):

     Check Spelling   Check Accessibility   Check for Broken Links
    
      Start Workflow There are no Workflows available.
    

    TidyHTML is unchecked on the Page, though.

  3. 3 Posted by Joel on Nov 08, 2011 @ 02:08 PM

    Joel's Avatar

    Michael,

    Let's address the METATAG being removed from your Template without the use of TidyHTML in another ticket.

    Regarding the code readability issue, if TidyHTML is disabled then I'm not sure what could be converting the code. You could always wrap the tag in START-CODE and END-CODE tags to preserve the exact code but this is not likely ideal. Please feel free to create an idea within our Idea Exchange to address this issue however, as we do not feel it is necessarily a bug since it does not affect the rendering.

    Thanks!

  4. 4 Posted by Michael McGinni... on Nov 08, 2011 @ 10:58 PM

    Michael McGinnis's Avatar

    Very well then. Thanks.

  5. Joel closed this discussion on Nov 09, 2011 @ 03:12 PM.

Discussions are closed to public comments.
If you need help with Cascade CMS please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac