[whatwg] Introducing new elements is expensive

Olav Junker Kjær olav at olav.dk
Fri Mar 11 02:32:27 PST 2005


Ian Hickson wrote:
> I would recommend that suggestions avoid new elements, especially when 
> those elements have a lot of attributes, and especially when the element 
> has semantics very similar to an existing element.

The "output" element in WF2 shouldn't really be a new element. The 
semantics and interface are very similar to the input element 
(especially a input type=text with readonly). I suggest changing 
<output> to <input type=output>.
Only important difference is the fallback behavior. An <output> element 
would not be submitted in a non-WF2 UA, an <input type=output> would, 
since it would default to <input type=text>. This is not a big deal, 
though, since we can just avoid giving the field a name attribute.

Regards
Olav Junker Kjær



More information about the whatwg mailing list