Disable hyphenation (or enable strictness) in Firefox when rendering HTML

Firefox has a certain margin when rendering HTML. This means that even if there is no closing tag, the HTML will appear as if everything is in order. This aspect of tolerance is especially important when you use JavaScript to control or add content to the current page.

Since I use Firefox as the main browser for testing / development, I was repeatedly worried about this behavior, which resulted in the loss of functionality in "more stringent" browsers. For example, the same code in Microsoft Internet Explorer could not get any visible result due to the mentioned missing tag in the added content.

Now the question is: is there a way to tell Firefox more strictly regarding accepted HTML and crash instead of “guessing the fix” for it (especially when HTML is added via JavaScript)?

PS: I tried playing with DOCTYPE, but the results were the same.

+5
source share
3 answers

- . ( , , ). , script . script, minifier ( ). HTML, Visual Studio 2010 ( ) w3.

; IE7/8/9, Chrome Firefox. Safari Opera , . , .

BTW, DOCTYPE ( ).

+1

HTML; . , W3C. Firefox, , , , t Firefox .

+2

, IE.

doctype (<! DOCTYPE html > ) x-ua IE8, , , / , .

+1

All Articles