W3C home > Mailing lists > Public > www-style@w3.org > June 2007

Re: attributes as virtual tags

From: Cameron McCormack <cam@mcc.id.au>
Date: Fri, 22 Jun 2007 10:53:01 +1000
To: www-style@w3.org
Message-ID: <20070622005301.GB16092@arc.mcc.id.au>

Pascal Germroth:
> Well, I think this is a basic problem of XML: attributes, elements and
> content of attributes[*] are not considered equivalent. It should not be
> solved by CSS, it requires a new version of XML and everything
> surrounding it (like XPath and the DOM)...
> 
> *] like in SVG: <e style="fill: foo;" /> and <e fill="foo" /> mean the same.

Incidentally, these two are slightly different, since they will have
different specificity (the style="" one is (1,0,0,0) while the non-CSS
presentational hint fill="" is (0,0,0,0)), which might make a difference
when doing the cascade.

-- 
Cameron McCormack, http://mcc.id.au/
	xmpp:heycam@jabber.org  ▪  ICQ 26955922  ▪  MSN cam@mcc.id.au
Received on Friday, 22 June 2007 00:53:13 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:51 GMT