W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2009

[whatwg] small element should allow nested elements

From: Remy Sharp <remy@leftlogic.com>
Date: Fri, 7 Aug 2009 14:19:23 +0100
Message-ID: <C59DCFB2-ECF7-4FD0-81DB-750E63B2EA12@leftlogic.com>

I know Bruce Lawson has mentioned that this has been brought up  
before, but I couldn't find it in the archives (searching "small"), so  
I'd like to bring it up again.

The HTML 5 spec says:

"Small print typically features disclaimers, caveats, legal  
restrictions, or copyrights. Small print is also sometimes used for  
attribution, or for satisfying licensing requirements."


So I'm making a list of disclaimers for my site:

   <li>You must agree to this term</li>
   <li>And this term too</li>
   <li>And don't break this term</li>
   <li>And don't forget the milk</li>
<p>By reading this, you're agreeing to xyz</p>

To make this valid, and small print text, I need to individually wrap  
the inner HTML of each inline element (li and p elements).  This is  
wasteful and very much like the situation that we had with the a  
element when we wanted the whole block to be clickable.

When I wrap *everything* in the small element (as seen here: http://jsbin.com/okevo 
  ) all the browsers I've tested it in renders the text as I would  
expect, but it doesn't validate against the HTML 5 parsing rules (as  
you'd expect).

If this element is truly for disclaimers, caveats and restrictions,  
and not stylistically making something small, then it will be  
typically used on blocks of content, be it a single line or multiple  
paragraphs.  As such, it seems sensible to say that the small element  
can have nested block elements within it.

Here's the list of the compatible browsers (I could have done more  
browsers, but I think this test with 10 proves the support is solid):


<small>At time of writing, the last test is still being generated, but  
I've tested Firefox 3.5 manually and it passes</small> ;-)


Remy Sharp
Left Logic


I'm running a conference in Brighton on 20-Nov called:

Full Frontal JavaScript Conference
Received on Friday, 7 August 2009 06:19:23 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:15 UTC