deprecated js method warning when using firefox 2
-------------------------------------------------
Key: MAGNOLIA-1085
URL: http://jira.magnolia.info/browse/MAGNOLIA-1085
Project: magnolia
Issue Type: Improvement
Affects Versions: 3.0 RC2
Reporter: Fabrizio Giustina
Assigned To: Boris Kraft
Fix For: 3.0 Final
Firefox 2rc1 complains (in the error console) about the use of the nonstandard
captureEvents() call in Magnolia code:
Warning: Use of captureEvents() is deprecated, see bug 330494
this reports a forward compatibility problem but, at the moment, it's just
annoying to see all those logs in the console.
some more info gathered from firefox dev lists:
====
The supported events did not change, it's just that using the
non-standrard window.captureEvents method to listen for events will
break in the next version of Gecko (1.9 - the engine for Firefox 3).
You should use the W3C events API instead - specifically
addEventListener. There are quite a few documents and tutorials
explaining the W3C events system, read some of them (I like the
explanation and the illustration in the DOM Level 3 Events draft).
Even though W3C DOM Level 2 Events specification doesn't have a key
event module, Gecko supports the usual key events, 'keypress'
included.
Documentation is available on MDC
(http://developer.mozilla.org/en/docs/Gecko_DOM_Reference ), but some
of its pages are not of good enough quality yet, so be careful. Once
you figure something out, you're welcome to improve the docs. The W3C
specifications are a good source of information too, except for the
places where we don't follow the spec.
====
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia.info/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------