[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

--- Comment #5 from Simon Pieters <simonp@opera.com> 2012-05-28 10:41:05 UTC ---
(In reply to comment #4)
> Admittedly it does break backwards compatibility, I am aware of that, but on
> the other hand it feels cleaner.

We usually don't trade backwards compatibility for cleanness.

> Easier to learn because there would be one less tag to learn.

But one more attribute.

> Cleaner DOM because one less element in the DOM.

OK, I can buy that.

> An IDE could provide autocompletion/autosuggestion for the legend attribute
> when opening the fieldset tag.

It could do that with an element as well, as far as I can tell.

> No, because now there is no coupling.

Yes there is. A fieldset's legend is the first legend element that is a child
of the fieldset element, if any.

-- 
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 10:41:08 UTC