Wednesday, November 3, 2010

Re: HTML5 innershiv

I very much appreciate this and apologies for going silent on the
issue. I believe that I made all the changes indicated by steps #1, #2
and #3 above, my issue is how and where to include the innerShiv
function.

should the innerShiv function be included somewhere in the GWT source?
I could not pick an appropriate place.

should the innerShiv function be included as part of my project?
should the GWT source reference it as $wnd.innerShiv()?

my attempts were unsuccessful and frustrating, mainly due to IE
throwing an exception and the debugging experience not being up to
scratch. the major issue seemed to revolve around core/client/impl/
Impl.java and the entry0() function. my guess would be that GWT is
unhappy with how innerShiv() is being defined and called.

all in all, it looks like a great solution, I just can't get the
implementation right.

On Oct 22, 2:45 pm, Thomas Broyer <t.bro...@gmail.com> wrote:
> On 22 oct, 20:15, davidroe <roe.da...@gmail.com> wrote:
>
> > bump
>
> > I guess a better way of phrasing the question is how should a GWT
> > project render HTML5 tags for all browsers knowing that one of those
> > browsers could be IE?
>
> > this is achievable using html5shiv, but not when the HTML is dynamic
> > this is also achievable using innerShiv, when you have control over
> > the dynamic process
>
> > any thoughts on how this could be used with UiBinder?
>
> One possibility (that would work with *and* without UiBinder) would be
> to:
> 1. change c.g.g.dom.client.Element so that setInnerHTML calls DOMImpl
> (similar to getInerHTML)http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/...
> 2. implement setInnerHTML in DOMImpl the same as it is today in
> Element
> 3. override setInnerHTML it in DOMImplTrident to use innerShiv.
>
> Steps #1 and #2 means patching GWT ("classpath override" is
> fortunately enough), but maybe the patch could be included in GWT
> proper in the next version, just to make #3 possible.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment