[whatwg] Suggestion: "context" attribute

Martin Kutschker Martin.T.Kutschker at blackbox.net
Fri Jun 25 11:17:59 PDT 2004

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.

who is just popping in, hello everybody

More information about the whatwg mailing list