I think the problem is that when the validator uses "inline" or "detect
automatically" for doctype it is nothing more than a SGML parser + HTML
DTD. Where as if one selects the doctype explicitly, it parses as HTML.
basic
Garth Wallace wrote:
> "Richter" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]...
>
>>Gus wrote:
>>
>>
>>>This page:
>>>http://css.nu/temp/valid-test1.html
>>>exhibits two problems?
>>>
>>>1. SGML Shorthand (Shorttag) is not supported.
>>>
>>>2. View Source (dynamic?) not reliable (erroneous).
>>>
>>>Please comment.
>>>
>>>Gus
>>>P.S. The page validates with the W3C validator.
>>>
>>Is this the wrong NG to post this in?
>>
>
> Not really, although this group doesn't get much traffic.
> Adding n.p.m.general.
>
>
>>Perhaps I need to clarify:
>>The document
>>http://css.nu/temp/valid-test1.html
>>is written in HTML 4.01 Strict and validates.
>>
>>Problem #1:
>>It will not display with Mozilla due to SGML Shorttag usage, although
>>it is legal and validates (only Opera displays something, although
>>not properly).
>>
>
> Does it validate with the W3C's HTML validator, or with an
> SGML validator using the HTML 4.01 doctype? HTML doesn't
> have some SGML features--the SGML spec isn't entirely
> normative for HTML.
>
>
>>Problem #2:
>>More important is that Mozilla's Source Reader does not display the
>>original source but tries to "fix it" the same as NS 4.x does.
>>IE and Opera's "View Source" display the source perfectly, whereas
>>Mozilla's rendition is rearanged "dynamically(?)" just as NS 4.x was.
>>The conclusion is that Mozilla's View Source Reader is not reliable.
>>
>
> AIUI, Mozilla's "view source" is generated from the DOM tree.
>
>
>>The Original:
>>
>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
>> "http://www.w3.org/TR/html4/strict.dtd"
>> ><TITLE>Some title</><STYLE TYPE="text/css">
>> HTML { margin: 0; border: none; padding: 0; }
>> BODY { margin: 1em; border: solid 5px #CC3300; padding: 1em;}
>> P { margin: 0; border: solid 1px #0033CC; padding: 1em;
>> font-family: Georgia, serif; font-size: 2em;
>> text-align: center; }
>> </><P/This page validates as/<P><EM/strict HTML4.01/
>>
>>What Mozilla shows:
>>
>><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
>> "http://www.w3.org/TR/html4/strict.dtd"
>> ><title>Some title</><style TYPE="text/css"></style>
>>HTML { margin: 0; border: none; padding: 0; }
>> BODY { margin: 1em; border: solid 5px #CC3300; padding: 1em;}
>> P { margin: 0; border: solid 1px #0033CC; padding: 1em;
>> font-family: Georgia, serif; font-size: 2em;
>> text-align: center; }
>> </><p/This page validates as/<P>
>>
>
> HTML has never supported the </> notation to my knowledge.
> Same with that <P/This page validates as/<P> thing (are you
> missing a > there?)
>
>
>