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

[whatwg] Introducing new elements is expensive

From: Matthew Raymond <mattraymond@earthlink.net>
Date: Fri, 11 Mar 2005 11:22:49 -0500
Message-ID: <4231C5D9.8080207@earthlink.net>
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>
Received on Friday, 11 March 2005 08:22:49 UTC

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