[whatwg] [html5] Image captions in FIGUREs

Masataka Yakura myakura.web at gmail.com
Wed Jul 15 17:26:55 PDT 2009


On Thu, Jul 16, 2009 at 7:31 AM, Tab Atkins Jr.<jackalmage at gmail.com> wrote:
> On Wed, Jul 15, 2009 at 5:13 PM, Aryeh Gregor<Simetrical+w3c at gmail.com> wrote:
> I'm confused by this - what exact FF build did you test in?  When I
> try it in the current public 3.5, I get <legend> autowrapping itself
> in a <fieldset>.
>
> http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A%3Ctitle%3ETest%3C%2Ftitle%3E%0A%3Cfigure%3E%0A%20%20Test%20figure%0A%20%20%3Clegend%3Etest%20legend%3C%2Flegend%3E%0A%3C%2Ffigure%3E

If you wrap the <figure> in a <div> then you'll see both <legend> and
<fieldset> go away.

http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A%3Ctitle%3ETest%3C%2Ftitle%3E%0A%3Cdiv%3E%0A%3Cfigure%3E%0A%20%20%3Cimg%20src%3Dimage%20alt%3D%22%22%3E%0A%20%20%3Clegend%3Elegend%3C%2Flegend%3E%0A%3C%2Ffigure%3E%0A%3C%2Fdiv%3E

-- 
Masataka Yakura
<myakura.web at gmail.com>


More information about the whatwg mailing list