Tuesday, August 28, 2012

Re: Best practices waiting for DOM parsing

@Chris Price
Thanks, I'll try to put together a simple demo. The only trouble is that this only happens on quite complex UI's, but I'll try to distill it down to it's essence.

@Alfredo
The issue I found with SVG is that these events are not well supported. For example, in Mozilla, SVG.getElementById is not supported. Why? On the bug report response they said that they hadn't bothered to implement the whole SVG spec since Canvas is the cat's meow. In the Lib-GWT-SVG library which we use, there is no support for events on SVG elements. I see that the spec you sent is barely a year old. I'll need to check if that is more supported than it was last year when I was trying.

Another example is that SVG animation (SMIL) which is awesome, does not work very well at all in Chrome while it rocks in Mozilla. It is really quite a shame since such declarative animation frameworks make awesome animations easy, but browser vendors cannot be bothered to implement long standing specs.

Ideally I'd just use addLoadHandler from http://www.w3.org/TR/SVG/script.html#EventAttributes, but it's not in the aforementioned SVG lib. I'll have to try doing it myself and see how it goes.


Sincerely,
Joseph

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/vD-gqLi6sA8J.
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