W3C home > Mailing lists > Public > www-validator@w3.org > May 2003

Re: XHTML1.1 DTD errata or Validator bug?

From: Gannon J. Dick <gdick@verizon.net>
Date: Sat, 3 May 2003 12:57:27 -0500
Message-ID: <005501c3119d$75ab15b0$52ab2e04@home2>
To: "Jonathan Stanley" <jon@lambcutlet.org>, <www-validator@w3.org>


> I used a unique id is used to give it a "hook" for user specified CSS, so
> that they can specify CSS rules by:
>
> html#mydomain elem.class {
> foo: bar;
> }

Wouldn't that interrupt,  the "Cascade", import order, whatever?
>
> Giving body a unique id would suffce in HTML4, but it seems in XHTML, and
> sending as application/xhtml+xml to compliant agents (Gecko and Amaya),
for
> Gecko at least, <html> is a better place to give the unique id than usng
> <body>, since <body> looses it's "magicness", and <html> behaves more like
> the canvas.
>
So, if you want to treat the <html> root node of an XML file the thing to do
would be to insert an xml-stylesheet
processing instruction  <?xml-stylesheet type="text/css"
href="mydomain.css"?>
...  I'm not sure about Gecko but Modzilla, Opera, Amaya or even IE have no
problem with that.

> I can do this in XHTML1.0 (Strict or Transitional) but I _cannot_ do so in
> XHTML1.1, which should just be XHTML1.0 Strict modularized.

I thought so too.
Received on Saturday, 3 May 2003 13:57:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:08 GMT