Re: Using the CLASS attribute - Request for Feedback

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

	class="this-is-class"

Same problems. Syntax  of classes is defined here
http://www.w3.org/TR/html4/struct/global.html#adef-class
http://www.w3.org/TR/html4/types.html#type-cdata

	"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>	
</div>

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