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

eZDebug HTML syntax error (has patch)

    XMLWordPrintable

Details

    Description

      The debug output produces html validator errors, caused by two attributes that are not separated by a space. The fix is just to add a space at the beginning of $identifierText, like this:

      Index: lib/ezutils/classes/ezdebug.php
      ===================================================================
      — lib/ezutils/classes/ezdebug.php (revision 20604)
      +++ lib/ezutils/classes/ezdebug.php (working copy)
      @@ -1426,7 +1426,7 @@
      if ( !$hasLevel[$debug['Level']] )

      { $hasLevel[$debug['Level']] = true; - $identifierText = 'id="' . $outputData['xhtml-identifier'] . '"'; + $identifierText = ' id="' . $outputData['xhtml-identifier'] . '"'; }

      $color = $outputData["color"];
      $name = $outputData["name"];

      Steps to reproduce

      In firefox web developer, validate the debug with Tools -> Validate local HTML.

      Attachments

        Activity

          People

            cyberwolf cyberwolf
            gl gl
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: