javascript - IE8 documentMode always 'quirk mode' -
i'm trying print message user when using ie version bellow ie8. test enabled document mode 8. when inquire document mode in javascript receive 'quirk mode: 5'
document.documentmode;
does know why?
here origin of specification:
<!doctype html> <html> <head> <meta http-equiv="x-ua-compatible" content="ie=edge,chrome=1" /> <meta http-equiv="content-type" content="text/html; charset=utf-8"> ...
solved:
i used user-agent nevertheless , checked 'trident/4.0' tag displayed in ie8
there couple of things can forcefulness ie quirksmode obvious 2 are
a missing, malformed or dated doctype see table near bottom of page comprehensive guide doctypes trigger quirksmode anything on page before doctype, ie insist on doctype beingness absolute first thing appear in file or assumes no doctype , revers quirksmode javascript document mode
No comments:
Post a Comment