- From: James Graham <jg307@cam.ac.uk>
- Date: Tue, 17 Jul 2007 23:31:50 +0100
- To: Robert Burns <rob@robburns.com>
- Cc: Simon Pieters <simonp@opera.com>, Debi Orton <oradnio@gmail.com>, public-html@w3.org
Robert Burns wrote:
>
>
> On Jul 16, 2007, at 7:21 AM, Simon Pieters wrote:
>
>>
>> On Mon, 16 Jul 2007 08:40:59 +0200, Debi Orton <oradnio@gmail.com> wrote:
>>
>>> 3.15.2 The caption Element
>>>
>>> "The <http://www.w3.org/html/wg/html5/#caption0>caption element
>>> represents the title of the
>>> <http://www.w3.org/html/wg/html5/#table>table that is its parent, if
>>> it has a parent and that is a
>>> <http://www.w3.org/html/wg/html5/#table>table element."
>>>
>>> What other legitimate usage is there for the caption element? I know
>>> of none, although this verbiage makes it appear as if there are
>>> others. Can we simplify it?
>>
>> The paragraph doesn't imply that there are other useages for the
>> caption element. It just defines what it means when it is used correctly.
>
> I wonder if this wording is a vestige of considering <caption> for
> <figure> elements (apparently rejected for <legend> because of some
> unspecified parsing issues).
I thought this had been cleared up. Apparently I was mistaken.
Try parsing <figure><img><caption>foo</caption></figure> in common
browsers [1] or in the html5 parsing algorithm [2]. <caption> tokens are
ignored except inside tables, so the resulting DOM will look like:
|html
|head
|body
|figure
|img
|#text: foo
For <legend> everything works as expected[3].
[1]
http://software.hixie.ch/utilities/js/live-dom-viewer/?<figure><caption>foo</caption></figure>
[2]
http://james.html5.org/cgi-bin/parsetree/parsetree.py?source=<figure><img><caption>foo<%2Fcaption><%2Ffigure>
[3]
http://james.html5.org/cgi-bin/parsetree/parsetree.py?source=<figure><img><legend>foo<%2Flegend><%2Ffigure>
--
"Mixed up signals
Bullet train
People snuffed out in the brutal rain"
--Conner Oberst
Received on Tuesday, 17 July 2007 22:32:24 UTC