"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.

> It does within the style sheet. If your style rule is
>
> small ( .... }
>
> Then IE will render that style rule wheras Mozilla will do the
> presumably correct thing and ignore the whole stylesheet up until the
> next ")"

There is a rule against doing that. There is no rule
(that I could find at least) about whitespace in the
TYPE attribute of the STYLE element.

> I've seen lots of sites get tripped up on that one. It's very
> important to get everyone who codes their site by hand to test in
> Mozilla, because IE lets you slip up left right and centre.

Actually, they'd be better off using the W3C's CSS validator,
which will actually tell them what the problems are.



Reply via email to