HighDots Forums  

Re: What happens if no DOCT YPE?

alt.html alt.html


Discuss Re: What happens if no DOCT YPE? in the alt.html forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: What happens if no DOCT YPE? - 06-11-2006 , 06:31 PM






Michael Laplante <nowhereman (AT) twilightzone (DOT) net> scripsit:

Quote:
In the absence of a doctype declaration, what do browser do?
Popular browsers go to "quirks" mode, i.e. intentionally misbehave.

Quote:
Is there a default based on strict compliance?
I understand all the words, and I can parse the question grammatically, but
it still makes no sense to me. Please rephrase.

Quote:
Fall back to some sort of transitional setting?
There is no "transitional setting".

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.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/



Reply With Quote
  #2  
Old   
dorayme
 
Posts: n/a

Default Re: What happens if no DOCT YPE? - 06-11-2006 , 08:24 PM






In article <FQ0jg.1524$uR5.1082 (AT) reader1 (DOT) news.jippii.net>,
"Jukka K. Korpela" <jkorpela (AT) cs (DOT) tut.fi> wrote:

Quote:
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.

and

(2)
Quote:
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.
What you might mean is that they do change their behaviour but
not in every respect.

--
dorayme


Reply With Quote
  #3  
Old   
Frank Olieu
 
Posts: n/a

Default Re: What happens if no DOCT YPE? - 06-11-2006 , 09:16 PM



"Jukka K. Korpela" <jkorpela (AT) cs (DOT) tut.fi> wrote in
news:FQ0jg.1524$uR5.1082 (AT) reader1 (DOT) news.jippii.net:

Quote:
[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)...

--
Venlig hilsen | Kind regards | Cordialement
Frank


Reply With Quote
  #4  
Old   
David Dorward
 
Posts: n/a

Default Re: What happens if no DOCT YPE? - 06-12-2006 , 02:50 AM



Neredbojias <http://www.neredbojias.com/fliam.php?cat=alt.html> wrote:

Quote:
The url within the dtd prevents quirks mode behavior in ie6 but that's all
I've ever seen happen.
The rules for Quirks mode / Standards mode are far more complex then the
presence or otherwise of a URL.

http://gutfeldt.ch/matthias/articles...tch/table.html

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is


Reply With Quote
  #5  
Old   
Alan J. Flavell
 
Posts: n/a

Default Re: What happens if no DOCT YPE? - 06-12-2006 , 06:39 AM



On Mon, 12 Jun 2006, Frank Olieu wrote:

Quote:
"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?
It makes no difference to their parsing of HTML. I think that's the
point that Jukka was referring to.

Quote:
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!


Reply With Quote
  #6  
Old   
Frank Olieu
 
Posts: n/a

Default Re: What happens if no DOCT YPE? - 06-12-2006 , 08:17 AM



"Alan J. Flavell" <flavell (AT) physics (DOT) gla.ac.uk> wrote in
news:Pine.LNX.4.64.0606121136500.16218 (AT) ppepc20 (DOT) ph.gla.ac.uk:

Quote:
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!
Roger that!

--
Venlig hilsen | Kind regards | Cordialement
Frank


Reply With Quote
  #7  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: What happens if no DOCT YPE? - 06-12-2006 , 05:35 PM



dorayme <doraymeRidThis (AT) optusnet (DOT) com.au> scripsit:

Quote:
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 that
has 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.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/



Reply With Quote
  #8  
Old   
dorayme
 
Posts: n/a

Default Re: What happens if no DOCT YPE? - 06-12-2006 , 06:55 PM



In article <i6ljg.2104$Yq.1951 (AT) reader1 (DOT) news.jippii.net>,
"Jukka K. Korpela" <jkorpela (AT) cs (DOT) tut.fi> wrote:

Quote:
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 that
has 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.
The very presence of something does things, but not because of
its internal capacitiies. A large man comes into a class of small
unruly students. He is a very knowledgeable man and the students
could learn a lot from him. But all this passes right over their
head. He is big and they behave themselves, at least they shut up.

--
dorayme


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.