"Daniel Glazman" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Garth Wallace wrote:
> > "Emlyn" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> >
> >>>>Is this a bug or a feature?
> >>>>
> >>>There doesn't seem to be anything in the HTML spec
> >>>forbidding whitespace in the TYPE attribute. I think
> >>>it's neither a bug nor a feature, just a slightly different
> >>>interpretation of the spec.
> >>>
> >>But... but... isn't big, bad Mozilla supposed to Lay Down the Law?
> >>
> >
> > Mozilla doesn't make the rules, it follows the rules.
> > In this case, the spec doesn't say either way is
> > right or wrong.
>
> Extract from HTML 4.01 spec, section 6.2 :
>
>    User agents may ignore leading and trailing white space in CDATA
>    attribute values (e.g., "   myval   " may be interpreted as "myval").
>    Authors should not declare attribute values with leading or trailing
>    white space.

Got it. Well, that basically confirms my point...
authors *shouldn't* use whitespace in the
TYPE attribute, but browsers *may* strip/ignore
it if it exists. So both IE and Mozilla follow the
spec here, even though they do different things.



Reply via email to