We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29781
    • 25 Posts
    After the update of 2 websites from 1.0.3 to 1.0.4 I have a W3C-validation problem that was not there before the update: The error is that "align" must not be "none". This error exists at every image with is included as a TemplateVariable when the attribute "align" is set to none (per default). With 1.0.3 the input form for the TV was just the same but there was no "align" in the html-output if it was set to none.

    Is this a bug in 1.0.4 or is there any sense in it? And mor important: How do I get my websites to validate without specifying "align" in the TV?
      • 21246
      • 55 Posts
      Line 46 -> manager/includes/tmpvars.format.inc.php is the culprit.

      <code>’align’ => $params[’align’]</code>
      was added to the array. It was the only change to this file from 1.03 to 1.04.

      I don’t know why it was added. Would need to check jira.

      If you delete or comment out that line also remove the last comma on on line 45 (last element of array).

      IMO Validation is overrated. I am coding for html5 now already anyway - YEEHAW.
        • 25663 MODX Staff
        • 12,272 Posts
        Please file a bug report in JIRA. Thanks.
          Ryan Thrash, MODX Co-Founder
          Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
          • 21246
          • 55 Posts
          Filed