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 Newest First
  • Wrong usage of the 'class' attribute on
    2003-05-23 08:44:04 Kendall Clark

    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


    • 2010-07-12 04:03:21 ariakerry

      Very nice article. I read your XML-Deviant column last summer and it really helped me understand how important XHTML is.
      web design (http://www.designerevaluation.com/web-design/)

    • Wrong usage of the 'class' attribute on
      2003-05-29 09:54:34 Kurt George Gjerde

      What about a type attribute? As in <blockcode type="text/perl">...

      • Wrong usage of the 'class' attribute on
        2010-08-13 10:12:07 dinariraqi

        I have liked your thoughts on XTML. I am going to subscribe your post and will come here again to know more. thanks,
        Iraqi Dinar (http://dinariraqi.net/)


      • 2010-07-12 04:17:43 ariakerry

        [link="http://www.designerevaluation.com/web-design/"]web design[/link]


        • 2010-08-19 19:00:28 chunsli

          I love it!

        • dinar iraqi
          2010-08-14 00:55:04 iraqi dinar

          Its wonderful how little creatures like mussels can dirt free freshwater. But you comprise to agree that while may clean the water, the dirt has to go anywhere else and come back to the water in the form of feces. The dilemma is that if there are 10 species that keep the water clean, there will be 100 that unclean it.
          Iraqi Dinar (http://tampadinar.com)





Sponsored By: