Closed
Bug 625027
Opened 15 years ago
Closed 15 years ago
Not able to set SVGResize on outermost SVG tag
Categories
(Core :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 509795
People
(Reporter: shropshire, Unassigned)
Details
Attachments
(1 file)
|
758 bytes,
image/svg+xml
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 ( .NET CLR 3.5.30729)
Build Identifier:
http://www.w3.org/TR/SVG/interact.html#SVGEvents
It is now clearly stated that this is for the outermost tag only:
SVGResize Occurs when a document view is being resized. This event is only applicable to outermost svg elements and is dispatched after the resize operation has taken place. The target of the event is the ‘svg’ element.
SVGResize events bubble but are not cancelable.
Reproducible: Always
Steps to Reproduce:
1.Open doc.
Will see a JS alert
2.Resize window
3.Should see a 2nd JS alert if successful, however, FF fails.
Actual Results:
Only 1 JS alert
Expected Results:
2 JS alerts
| Reporter | ||
Comment 1•15 years ago
|
||
| Reporter | ||
Comment 2•15 years ago
|
||
This is different than the bug whereby setting the onresize on the outermost svg tag directly fails. In this bug, I try setting it by script using addEventHandler.
Some browsers such as IE8 w/Adobe SVG correctly implement this.
| Reporter | ||
Comment 3•15 years ago
|
||
Some browsers like Chrome allow setting onresize directly but not via script. So really, these are 2 different bugs.
Comment 4•15 years ago
|
||
addEventHandler and onload are basically the same thing in Gecko. Once one is imnplemented the other will just work. It's quite possible Chrome is different in that regard.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
Comment 5•15 years ago
|
||
I meant onresize rather than onload of course.
You need to log in
before you can comment on or make changes to this bug.
Description
•