![]() | |
#1
| |||
| |||
|
|
In the absence of a doctype declaration, what do browser do? |
|
Is there a default based on strict compliance? |
|
Fall back to some sort of transitional setting? |
#2
| |||
| |||
|
|
Michael Laplante <nowhereman (AT) twilightzone (DOT) net> scripsit: In the absence of a doctype declaration, what do browser do? (1) Popular browsers go to "quirks" mode, i.e. intentionally misbehave. |
|
Contrary to what you seem to believe, and what some authorities might seem to be telling you, browsers do not actually change their behaviour according to the document type declaration. For example, if you declare a Strict doctype, they don't start ignoring elements and attributes that do not belong to the Strict version. |
#3
| |||
| |||
|
|
[snip] browsers do not actually change their behaviour according to the document type declaration. |
#4
| |||
| |||
|
|
The url within the dtd prevents quirks mode behavior in ie6 but that's all I've ever seen happen. |
#5
| |||
| |||
|
|
"Jukka K. Korpela" <jkorpela (AT) cs (DOT) tut.fi> wrote in news:FQ0jg.1524$uR5.1082 (AT) reader1 (DOT) news.jippii.net: [snip] browsers do not actually change their behaviour according to the document type declaration. Don't you mean: browsers *do* actually change their behaviour according to the document type /declaration/, but *not* according to the Document Type /Definition/ that the /declaration/ refers to? |
|
The document type /declaration/ does trigger a change in behaviour (going for quirks or standard mode)... |
#6
| |||
| |||
|
|
It makes no difference to their parsing of HTML. I think that's the point that Jukka was referring to. The document type /declaration/ does trigger a change in behaviour (going for quirks or standard mode)... But that's a change in behaviour with reference to their interpretation of CSS - whereas the DTD. in theory, is only about the syntax of HTML. So that's a difference in at least two dimensions! |
#7
| |||
| |||
|
|
What you might mean is that they do change their behaviour but not in every respect. |
in any sense that
#8
| |||
| |||
|
|
dorayme <doraymeRidThis (AT) optusnet (DOT) com.au> scripsit: What you might mean is that they do change their behaviour but not in every respect. No, I meant what I wrote; I usually do. I was a bit vague though; I often am. In the absence of a doctype declaration, popular browsers go to "quirks" mode. Browsers do not actually change their behaviour according to the document type declaration (and here I forgot to add in any sense thathas the slightest connection to what the declaration _means_ in SGML or XML terms. Perhaps I should have clarified that they play a (silly) game with the doctype declaration but won't even read the document type definition that it refers to. |
![]() |
| Thread Tools | |
| Display Modes | |
| |