Is there a way to switch a page in quirksmode mode to standard mode using Javascript?
For example, if I have the following page with html in it. I have tried the following.
<html><script src="js.js"></script></html>
and the following content in js.js
document.open();
document.write('<!doctype html><html></html>');
document.close();
From looking at the above result, I basically try to convert the page in quirksmode mode to standard mode, but it does not work. (adjusting the content of the page as above, on iframe works fine)
iframe works
This works, you document.createElement('iframe')add to the document and call iframe.contentWindow.document.write('<!doctype html>..');on it. Unfortunately, the same method does not work if I call it on the current page.
Does anyone have a working fix, switching the page in quirksmode mode to standard mode?
EDIT: iframe 100%, , ;)