Question

Iv'd wanted to find out is it possible to change your IE mode after you'd set the doctype

Atm i can only set this specific doctype:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 

Which make IE turn into Quirks mode. See this article for more info about doctypes and quirksmode

I don't have the possibility to change this what can i do to change this to like the newest IE standard available ?

I can only change the html, css and javascript

I cant set meta tags or anything cause the service we sent it to have a build step that set everything this way

Summed up:

Change the mode of the browser with javascript after a page load?

Was it helpful?

Solution

No, after the page has loaded and the doctype string and the meta tags have been parsed, nothing on the page can change the browser mode. The mode selection in IE is very complicated, see Activating Browser Modes with Doctype, but they have no provision for changing the mode via scripting.

OTHER TIPS

IE automatically sets the rendering mode to Quirks mode if the Website is not valid HTML. You should try to use a validator (http://validator.w3.org/) to see what is wrong.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top