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

appendDebugNodes breaks IE by triggering Quirks mode

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.4.0beta2
    • 4.2.0, 4.3.0, extension/ezwebin 1.2
    • None
    • Operating System: any
      PHP Version: (please be specific, like '4.4.3' or '5.1.5') any
      Database and version: any
      Browser (and version): IE7

    Description

      the appendDebugNodes function inserts markup
      <!-- START: including template: $path ($uri) -->
      into the generated HTML code.

      It should not do it for the pagelayout.tpl pages, because the comment gets included before the regular HTML doctype definition.

      IE7.0.5730.11 is to stupid to understand HTML comments before the doctype line, and will missinterpret the doctype therefore.

      in other words:

      <!-- START: including template: design/ezwebin/override/templates/fre_pagelayout.tpl (design:pagelayout.tpl) -->
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

      is not valid XHTML to IE7, and the doctype will get wrong.

      Steps to reproduce

      any page rendred in IE7 when 'include used templates' is turned on.

      I think preventing the markup in the case of a pagelayout template would do the trick.

      Attachments

        Activity

          People

            andre1 andre1
            bizandgo bizandgo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: