[whatwg] Suggestion: "context" attribute

Matthew Raymond <mattraymond at earthlink.net> writes on 
Fri, 25 Jun 2004 16:35:43 +0200 (METDST):

> This is a revision of an earlier idea I had. The general purpose
> of this attribute is to support popups. Sample code time!
> 
> ------------------------------------------------------------
> 
> <div id="myPopup" repeat="template">
> <p>Random popup stuff</p>
> </div>
> 
> <input type="text" value="some text" context="myPopup">
> 
> ------------------------------------------------------------
> 
> Since templates are not displayed, the <div> element above is not
> rendered by a Web Forms 2.0 UA. For Internet Explorer, the context 
> attribute is ignored, and CSS can be used to suppress rendering of the
> <div> element.


Why abuse an attribute? I like the general idea, but would favour either a new element instead of div or another new attribute.

Masi,
who is just popping in, hello everybody 

Received on Friday, 25 June 2004 11:12:24 UTC