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.
unode source
share