Saturday, 15 March 2014

internet explorer - How to select Document Mode in Firefox and Chrome without setting a DOCTYPE? -



internet explorer - How to select Document Mode in Firefox and Chrome without setting a DOCTYPE? -

i working on converting web page creating using old web standards back upwards modern web browsers. web page renders in quirks mode within net explorer 9, firefox, , chrome.

in ie9, able select "document mode" in web page viewing render in. makes things easier, can jump between quirks mode , ie9 standards mode. not have add/modify doctype tag within code of web page.

can same in firefox , chrome?

no. in browser–except ie–there 3 different modes:

quirks mode

this browsers wilfully not follow standards in order compatible broken content. ie < 10 frozen in ie5.5 era quirks mode. other browser’s quirks mode, including ie10 have evolved interoperable each other, break in more predictable ways.

the usual method of setting quirks mode not not include doctype, or include content before doctype.

it highly recommended not rely on quirks mode rendering.

almost standards mode

this renders standards mode, except behaviour of vertical sizing of table cells.

triggered doctype of:

<!doctype html public "-//w3c//dtd html 4.01 transitional//en" "http://www.w3.org/tr/html4/loose.dtd"> standards mode

this mode developers should using, browsers behaving defined standards. triggered using valid doctype such <!doctype html>

there no way set other modes in non-ie browsers. can find out more @ http://hsivonen.iki.fi/doctype/

i’d advise seek update site standards mode if can, cause more issues longer left in legacy rendering modes. not take advantage of enhancements in modern versions of ie, such performance improvements.

internet-explorer google-chrome firefox browser quirks-mode

No comments:

Post a Comment