Alan{H} (detalles) wrote in wwwstandards,
Alan{H}
detalles
wwwstandards

XML Prolog & IE6 Quirks Mode

Why didn't anybody tell me before!?

Explorer Windows special: the xml prolog



In Explorer 6 Windows, Microsoft implemented one extra rule: if a doctype that triggers strict mode is preceded by an xml prolog, the page shows in quirks mode. This was done to allow web developers to achieve valid pages (which require a doctype) but nonetheless stay in quirks mode.

This is the xml prolog. You should put it on the very first line of your document, before the doctype.

<?xml version="1.0" encoding="iso-8859-1"?>

--Peter Paul Koch, "Quirks mode and strict mode" on quirksmode.org

cross-posted: weblingo, webmasterguild
Subscribe
  • Post a new comment

    Error

    default userpic

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 2 comments