[xhtml2] style elements and different syntax for type

Hi,
This is a QA Review comment for "XHTML 2.0"
http://www.w3.org/TR/2006/WD-xhtml2-20060726/
2006-07-26
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" 
  srctype="text/css" 
  type="application/xml"
  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