[whatwg] Suggestion: "context" attribute

Ian Hickson ian at hixie.ch
Thu Aug 5 10:32:00 PDT 2004


On Fri, 25 Jun 2004, Matthew Raymond wrote:
>
> 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">

Seems to me that it would make more sense to say that context="" should 
just point to a menu, rather than anything at all.

I think we should just have context="foo" where foo is defined by a <menu 
id="foo"> somewhere. Would that be ok?

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list