[Bug 12834] Allow wrapping LEGEND (or new iLEGEND) in non-FIELDSET elements

https://www.w3.org/Bugs/Public/show_bug.cgi?id=12834

--- Comment #44 from Benjamin Hawkes-Lewis <bhawkeslewis@googlemail.com> 2011-12-20 05:46:57 UTC ---
(In reply to comment #43)
> Another option is to introduce new iLEGEND (named from "inline legend") element
> (wrappable too as it was originally proposed for LEGEND).
> 
>     <fieldset>
>         <p>Please provide your <ilegend>credentials</ilegend></p>
> 
>         <input type="text" name="username" />
>         <input type="password" name="password" />
>     </fieldset>
> 
> Compared with LEGEND, potential benefit is that new element has no "special
> rendering rules" legacy at all and therefore is fully and predictably styleable
> by nature.

We already have features for indicating <legend>-like semantics without popular
user agents applying default styles in the form of ARIA:

    <fieldset aria-labelledby="credentials-legend">
        <p>Please provide your <span id="credentials-legend">credentials</p>
       <input type="text" name="username" />
       <input type="password" name="password" />
    </div>

Unlike "ilegend" this already has some support in current software.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Received on Tuesday, 20 December 2011 05:47:06 UTC