W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2005

[whatwg] Introducing new elements is expensive

From: Dean Edwards <dean@edwards.name>
Date: Sat, 12 Mar 2005 08:25:12 +0000
Message-ID: <4232A768.3020305@edwards.name>
Matthew Raymond wrote:
> Anne van Kesteren wrote:
> 
>> Matthew Raymond wrote:
>>
>>> By the way, is there a reason that <output> can't have a |value| 
>>> attribute? What if we want the initial contents on a legacy UA to be 
>>> "Calculation Not Available", or perhaps an <input type="text" 
>>> readonly> element like you suggest? Is this an example of Ian trying 
>>> to avoid <noscript>-style elements?
>>
>>
>> From:
>>   <http://whatwg.org/specs/web-forms/current-work/#the-output>
>>
>> # Its current value is given by its contents, which may be any inline
>> # content (like the span element).
> 
> 
>    You completely missed the point. The idea is that the inline content 
> in a legacy UA would be *intentionally* different from the |value| 
> attribute as a way of providing separate content for WF2 UAs and legacy 
> UAs:
> 
> | <output value="0" onforminput="value = a.value * b.value">
> |  <input type="text" readonly="readonly" value="0">
> |  <script type="text/javascript" src="onforminput.js"></script>
> | </output>
> 

 From my reading of the spec, the relationship between inline content 
and "value" for an <output> element is exactly the same as for <textarea>.

-dean
Received on Saturday, 12 March 2005 00:25:12 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:39 UTC