WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
5874
WebCore+SVG needs support for "evt" instead of event
https://bugs.webkit.org/show_bug.cgi?id=5874
Summary
WebCore+SVG needs support for "evt" instead of event
Eric Seidel (no email)
Reported
2005-11-29 03:48:31 PST
For whatever reason the SVG working group chose to specify "evt" as the name of the parameter passed to inline event handlers. This simple patch adds support for this to WebCore.
Attachments
simple patch adding "evt" support
(1.04 KB, patch)
2005-11-29 03:48 PST
,
Eric Seidel (no email)
darin
: review-
Details
Formatted Diff
Diff
addressed Darin's concerns
(18.50 KB, patch)
2006-01-22 04:40 PST
,
Eric Seidel (no email)
darin
: review-
Details
Formatted Diff
Diff
addressed darin's further concerns
(22.28 KB, patch)
2006-01-22 15:18 PST
,
Eric Seidel (no email)
darin
: review+
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Eric Seidel (no email)
Comment 1
2005-11-29 03:48:49 PST
Created
attachment 4844
[details]
simple patch adding "evt" support
Eric Seidel (no email)
Comment 2
2005-11-29 03:49:08 PST
Comment on
attachment 4844
[details]
simple patch adding "evt" support mjs, darin or ggaren could easily review this.
Darin Adler
Comment 3
2005-11-29 07:29:19 PST
Comment on
attachment 4844
[details]
simple patch adding "evt" support I think a cleaner and clearer way to do this is to have a createSVGEventHandler alternative to the createHTMLEventHandler function that follows the SVG rules instead. To control the parameter name used when constructing the event listener, I suggest either adding a parameter to the JSLazyEventListener constructor or creating derived classes specific to HTML and SVG.
Maciej Stachowiak
Comment 4
2005-11-29 15:38:47 PST
Agreed, there should be a different code path for SVG rather than testing the element like this.
Dave Hyatt
Comment 5
2006-01-15 00:21:17 PST
I believe you should support both evt and event. I think that's something I recall was decided (either by Mozilla or CDF or someone).
Eric Seidel (no email)
Comment 6
2006-01-22 04:40:26 PST
Created
attachment 5836
[details]
addressed Darin's concerns This new patch adds an JSSVGLazyEventListener subclass for SVG to use. This patch also simplifies the way that event listeners are created by removing two unecessary layers of abstraction. This should address both darin and maciej's concerns. We do not currently support both "evt" and "event" for SVG event handlers like hyatt (and others) suggested. That dual functionality can be tracked by a separate bug.
Darin Adler
Comment 7
2006-01-22 10:46:20 PST
Comment on
attachment 5836
[details]
addressed Darin's concerns I don't like the underscore-prefixed name for the local variable. We should steer away from underscore prefixes in general since they are reserved for the library and platform. Patch does not include JSSVGLazyEventListener.h and .cpp so I couldn't review them. Because of that, review-.
Eric Seidel (no email)
Comment 8
2006-01-22 15:18:07 PST
Created
attachment 5851
[details]
addressed darin's further concerns
Darin Adler
Comment 9
2006-01-22 15:23:03 PST
Comment on
attachment 5851
[details]
addressed darin's further concerns I made a couple of comments on IRC. r=me (with or without the refinements from IRC).
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug