W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2004

Transition from Legacy to Native rendering - (was Re: [whatwg] repetition model)

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 21 Jun 2004 14:16:09 +0000 (UTC)
Message-ID: <Pine.LNX.4.58.0406211412050.11589@dhalsim.dreamhost.com>
On Mon, 14 Jun 2004, Hallvord Reiar Michaelsen Steen wrote:
>
> I imagine the script libraries should be written with this in mind and
> themselves check whether the UAs support WebForms 2 natively.
> Something like..
>
> if(! (document.implementation && document.implementation.hasFeature
> && document.implementation.hasFeature('WebForms', '2.0') ) ){
>     // create SCRIPT element or write SCRIPT tag linking in the WF2
>     // JavaScript libraries here
> }
>
> If it gets implemented first in Opera and Mozilla and they do not add
> support for CSS behaviours it is of course tempting to just use a CSS
> behaviour property for IE. Even so the script library itself should
> probably use hasFeature to avoid crashing with a native
> implementation.
>
> Ian, perhaps one ought to mention this somewhere if you write
> something about requirements for legacy UA-libraries?

Yes.

I don't really know what a good solution is. hasFeature() doesn't really
work; since it is highly likely that WF2 will be implemented piecemeal,
like all other specs. (I have put a hasFeature string into the spec, but I
don't think it is enough.)

I'm open to suggestions.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 21 June 2004 07:16:09 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:17 UTC