Sign In/My Account | View Cart  
advertisement

Article:
 XHTML is the Most Important XML Vocabulary
Subject: Wrong usage of the 'class' attribute on
Date: 2003-05-23 02:21:17
From: J D

The XHTML2 draft spec linked to specifies <blockcode> as only using the 'Common' attribute collection (http://www.w3.org/TR/2003/WD-xhtml2-20030506/mod-block-text.html#edef_block-text_blockcode), ie 'class' in this case is for presentation (style) purposes only.


I'd speculate that it's only used in the example to illustrate how you might differentiate code samples of different types(presentationally). It should perhaps explicitly say that in the spec...


No Previous Message Previous Message   Next Message Next Message


Titles Only Titles Only Oldest First
  • Wrong usage of the 'class' attribute on
    2003-05-23 08:44:04 Kendall Clark [Reply]

    JD,


    Good catch! You're exactly right, of course. I had meant to include a paragraph about how, in addition to presentational "class" attribute, blockcode should also have an attribute indicating, by way of a URI or URN, the kind of programming language contained within the block. But I couldn't think of a good name for this attribute...


    Thanks.


    Kendall Clark


Sponsored By: