W3C home > Mailing lists > Public > public-rdf-in-xhtml-tf@w3.org > October 2006

Re: Using the CLASS attribute - Request for Feedback

From: Karl Dubost <karl@w3.org>
Date: Fri, 13 Oct 2006 13:37:14 +0900
Message-Id: <5FF4968A-3373-44FF-99C9-C3A505FA26C1@w3.org>
To: public-rdf-in-xhtml task force <public-rdf-in-xhtml-tf@w3.org>

Le 06-10-13 à 07:21, Elias Torres a écrit :
> In a previous email to Ben you came with excellent cases we need to
> consider in the spec. That's exactly what we were hoping by asking the
> community.
>   class='a:b:c'
>   class='http://example.org/a http://example.org/b'
>   class='a#b#c #d#e#f#'
> In the same way eRDF uses @class to specify triples but uses '-'  
> instead
> of ':'.
> For example:
> <span class="foaf-name"><span class="foaf-firstName">Anna</span>
> <span class="foaf-surname">Wilder</span></span>.
> <img src="pic.jpg" class="foaf-depiction" alt="A picture of me"/>


Same problems. Syntax  of classes is defined here

	"CDATA is a sequence of characters from the
	document character set and may include character
	entities. User agents should interpret attribute
	values as follows:

     	* Replace character entities with characters,
     	* Ignore line feeds,
     	* Replace each carriage return or tab with a
           single space.

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

And what's happening with?

<div class="movie">
	<h1>blah movie</h1>
	<p class="movie">lorem ipsum</p>	
	<h1>booh movie</h1>
	<p class="movie">lorem ipsum</p>	

Karl Dubost - http://www.w3.org/People/karl/
W3C Conformance Manager, QA Activity Lead
   QA Weblog - http://www.w3.org/QA/
      *** Be Strict To Be Cool ***
Received on Friday, 13 October 2006 04:37:30 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:50:21 UTC