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

IE7 doesn't like Template debug

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Medium Medium
    • None
    • None
    • None
    • Operating System: winxp
      PHP Version: (please be specific, like '4.4.3' or '5.1.5')na
      Database and version:na
      Browser (and version):ie7

    Description

      Turning on Template debug make IE7 act unpredictably when rendering CSS. In our case it ignores "#content

      {margin:0 auto}

      " (which makes the 'content' div have equal left and right margins).

      It seems that this is caused by template debug inserting a template include comment before the document type declaration - in a local copy removing that line from the code fixes the problem.

      Firefox doesn't seem to care. Neither does Opera.

      The XML spec (and XHTML is XML) states that "The document type declaration must appear before the first element in the document." (2.8 Prolog and Document Type Declaration http://www.w3.org/TR/REC-xml/)

      -in fact the initial spec (1998) says it 'must', the newest update says that it 'MUST'

      We are running ezpublish 3.9.3, without the website interface. It'd be nice to be able to use Template Debug without our users getting a different layout!

      Steps to reproduce

      Find IE7 (you know you've got it somewhere!)
      Open an ezpublish site (with a centred content div) with it.
      Turn on Template debug mode.
      Watch you content stick to the left.

      Attachments

        Activity

          People

            unknown unknown
            pbolger pbolger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: