Implement ondblclick for SVGElement

RESOLVED WONTFIX

Status

()

--
enhancement
RESOLVED WONTFIX
12 years ago
11 years ago

People

(Reporter: jesse, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

(Reporter)

Description

12 years ago
User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0

SVG elements do not support the ondblclick event handler. HTMLElement and VML (on Internet Explorer) both support this event handler.

Reproducible: Always
Assignee: nobody → general
Component: General → SVG
Product: Firefox → Core
QA Contact: general → ian
Version: unspecified → Trunk

Comment 1

12 years ago
SVG 1.1 does not define an ondblclick event attribute:

  http://www.w3.org/TR/SVG11/script.html#GraphicsEvents
(Reporter)

Comment 2

12 years ago
I know. That's why I added this as an enhancement.
(Reporter)

Updated

12 years ago
Blocks: 339186
I'll be surprised if clickCount doesn't work. Can you provide a testcase?
(Reporter)

Comment 4

12 years ago
Created attachment 245121 [details]
Test case for ondblclick. Shows onclick, onmousedown, and onmouseup working with evt.detail equal to the click count.
(Reporter)

Comment 5

12 years ago
You're right about clickCount (evt.detail). I still think that this is worth considering given that HTMLElement and VML elements (on Internet Explorer) implement it.
Summary: Implement ondblclick (or clickCount) for SVGElement → Implement ondblclick for SVGElement
(Reporter)

Comment 6

12 years ago
Created attachment 245123 [details]
Same as before, shows ondblclick for DIV.
fair enough. I think there are a lot of higher priority issues though (given that there's a workaround).
I think we should really encourage people to be using the W3C way, which is to check .detail for the click count. Hence closing as wontfix.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 11 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.