Removing the doctype declaration or adding a comment before it aren't helping. From what I've seen, If I switch to IE7 or below from the inspector in IE, it displays the page in quirks mode. But why won't removing the doctype do the trick in any browser?
How can I manually enable the quirks or almost standards modes for an HTML file?
228 Views Asked by panipuri At
2
There are 2 best solutions below
0
Alohci
On
The Mode of the document is fixed by the parser as it parses the HTML. Subsequently alterations to the document's contents won't change the mode.
The only way to get a differently moded document is create a new document by re-parsing the contents with the altered HTML.
Related Questions in INTERNET-EXPLORER
- VBA, Internet Explorer and Javascript
- Inefficient driver.get() performance in Loops with IEDriver
- NEXT JS -unpecified error on ecternal calls
- Internet Explorer fails to launch via Selenium
- IE Mode Edge driver stuck on 'This is the initial start page for the WebDriver server' when running in Elevated Mode (Admin Mode) [Selenium]
- Can open new window in different browser?
- unable to get the right object to set the windowState
- Filters to apply for an application that can only run on IE compatibility
- How to accept popup message from Edge in IE mode Python - Selenium
- Does anyone know why i cannot see the source code of a website while in Internet Explorer mode in Microsoft Edge?
- Protected Mode settings are not the same for all zones (SELENIUM) (IE MODE IN EDGE)
- Browser Compatibility for WebTransport
- Internet Explorer don't POST
- Microsoft Edge API and IE Mode
- Close security screen alert Internet Explorer Pop-up using VBA and Windows API
Related Questions in DOCTYPE
- Why DOCTYPE is required in HTML(ANGULAR)?
- I am using ERPnext for our customers/clients. I want the users on the web portal to only see their orders and issues
- How can I run a JSON script into a requests.get to get out a table from Alloy?
- How can I resolve this error with DOCTYPE? RESOLVED
- XSLT to put existing !ENTITY refs inside <!DOCTYPE > of XML
- jQuery is not compatible with Quirks Mode - for DTD html 4.0 transitional <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- Create a DocType like Interface, based out of the fields of a Doctype Object - Frappe Python
- Please make sure that Redis Queue runs @ redis://localhost:11000
- node.js requests returns doctype
- How to adjust this XSL script to prevent Quirks Mode?
- how to write this lines with easiest way, is there a shortcut in keyboard on windows?
- index() missing 1 required positional argument: 'doc_type'
- Copying an XML file including doctype, entities and notations XSLT 3
- When extending a base.html , is the <!DOCTYPE html> tag passed on aswell?
- input box not centering
Related Questions in QUIRKS-MODE
- jQuery is not compatible with Quirks Mode - for DTD html 4.0 transitional <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- highcharts parseMarkup report a warning. This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use “<!DOCTYPE html>”
- writing ES5 code on a ES6 version incompatibility error for Javascript code?
- How to adjust this XSL script to prevent Quirks Mode?
- Javascript popup triggers browser quirks mode
- Background in standard mode not acting as expected?
- Why Firefox says this page is in Quirk mode and it is not?
- <!DOCTYPE html> affecting height of a table
- Flex layout problem with <!DOCTYPE html> and <input type="text">
- How can I enable Quirks Mode on MacOS?
- Bug in bookmarklet on web page that have HTML 3.2 doctype
- How can I manually enable the quirks or almost standards modes for an HTML file?
- How to dynamically add quirks mode meta-tags in ASP.NET Web Forms from code behind?
- Why do I get difference in offsetheight and offsetwidth values when I emulate my web application from IE5 to IE7 or higher?
- Which firefox quirk causes this behavior and how can I recreate it in standards mode?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
There are different document types.
You can try to refer to the table in the link below and try to use the Doctype according to its description may help you to load the page in quirk or standard mode in the specific browser.
Comparison of document types
Another helpful reference:
Quirks mode