W3C home > Mailing lists > Public > www-html-editor@w3.org > July to September 2006

[xhtml2] style elements and different syntax for type

From: <karl@w3.org>
Date: Thu, 17 Aug 2006 03:28:39 -0000
To: www-html-editor@w3.org
Message-Id: <20060817032845.087584F5BD@homer.w3.org>

This is a QA Review comment for "XHTML 2.0"
8th WD

About http://www.w3.org/TR/2006/WD-xhtml2-20060726/mod-styleSheet.html#sec_29.1.

XHTML 2.0 has defined Embedding attributes module, to make it possible to use src/srctype. Though the style element is using type instead of srctype, which is at least confusing, and likely to create mistakes for people using it. Being consistent for the name of attributes would improve the usability of the language.

Example given in the specification

	<style src="style.css" type="text/css" media="screen" />

Why not?

	<style src="style.css" srctype="text/css" media="screen" />

plus the fact that the style element accepts the Embedding attribute. It means it is possible to write things like:

	<style src="style" 
		media="screen" />

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 Thursday, 17 August 2006 03:29:01 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:08:55 UTC