I have 2 part question about how the browser's validation on a web page. Here's the basic scenario:
Suppose you have a page that validates perfectly in either HTML 4.01 strict or XHTML 1.0 strict. Now say you want to add a piece of code that you received from an external source, say you're placing an Ad on your page. For whatever reason, that code snippet will not validate, even as transitional.
Question 1:
My understanding is that if any part of the page won't compile, then the browser goes into quirks mode. What exactly is the "danger" of quirks mode? What makes it so bad?
Question 2:
Is there a way to block off the "bad" section of code so that the browser knows that the rest of the page is good, but just use quirks mode for just that section?
Thanks!
Tom
Suppose you have a page that validates perfectly in either HTML 4.01 strict or XHTML 1.0 strict. Now say you want to add a piece of code that you received from an external source, say you're placing an Ad on your page. For whatever reason, that code snippet will not validate, even as transitional.
Question 1:
My understanding is that if any part of the page won't compile, then the browser goes into quirks mode. What exactly is the "danger" of quirks mode? What makes it so bad?
Question 2:
Is there a way to block off the "bad" section of code so that the browser knows that the rest of the page is good, but just use quirks mode for just that section?
Thanks!
Tom