[Bug 17158] Remove the <legend> tag and add it as an attribute to <fieldset> Example <fieldset legend="Personal information">

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

Fred <eldmannen+w3@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |eldmannen+w3@gmail.com

--- Comment #2 from Fred <eldmannen+w3@gmail.com> 2012-05-28 08:24:15 UTC ---
The <legend> is an unnecessary tag, it just clutters the tag namespace and
makes it harder learn HTML.

It is only used in <fieldset> so instead of having a separate tag, it should be
an attribute of fieldset.

Having legend as an attribute of fieldset instead of as a separate take makes
more sense, makes learning HTML easier, removes unnecessary tags that clutter,
provides a cleaner DOM and allows autocompletion.

It also makes it more semantically correct because it is paired explicitly with
the fieldset tag.

Current markup:
<fieldset>
  <legend>Information</legend>
  Lorem ipsum...
</fieldset>

Proposed markup:
<fieldset legend="Information">
  Lorem ipsum...
</fieldset>

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

Received on Monday, 28 May 2012 08:24:22 UTC