W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2011

[whatwg] microdata: itemprop in <col> tag

From: David Karger <karger@mit.edu>
Date: Sun, 16 Oct 2011 22:47:17 -0400
Message-ID: <4E9B9735.9090708@mit.edu>
One natural way to represent a collection of structured items is in an 
html table.  this can coexist with microdata, by using <tr itemscope> 
and <td itemprop> tags.  But by ignoring the structure of the table, 
this creates a lot of redundant attribute specification.

It would yield cleaner markup if it were possible to use <col 
itemprop="foo"> to indicate an item property that should be inherited by 
all cells in the given column.  In other words, to assert that any <td> 
associated with a <col> should inherit the itemprop associated with that 
<col> .

It would yield even cleaner markup if there were a way to indicate that 
every <tr> was a distinct itemscope (the common case).  For example, to 
use <table itemtype="bar"> to indicate that each row of the table scopes 
an item of type bar.    Or perhaps <table itemscope> could be 
interpreted as asserting a distinct itemscope for each row without 
specifying a type.

But even using just the <col> inheritance rule, while still placing 
itemscope in <tr> tags, would save a quadratic quantity of markup.
Received on Sunday, 16 October 2011 19:47:17 UTC

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