Closed
Bug 338281
Opened 18 years ago
Closed 18 years ago
SVG drawing doesn't work anymore as expected
Categories
(Core :: SVG, defect)
Tracking
()
VERIFIED
FIXED
People
(Reporter: martijn.martijn, Assigned: tor)
References
Details
(Keywords: regression, testcase)
Attachments
(2 files)
1.12 KB,
text/html
|
Details | |
1.94 KB,
patch
|
roc
:
review+
roc
:
superreview+
|
Details | Diff | Splinter Review |
See upcoming testcase, in which it is possible to draw red lines by doing mousedown/mousemove/mouseup.
This is still working, but currently, the drawing doesn't survive a resize of the window, it gets deleted.
Also, I get a lot of js erros now in the console:
Error: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMSVGPathElement.setAttribute]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: file:///C:/Documents%20and%20Settings/mw22/Bureaublad/svg.htm :: domousemove :: line 33" data: no]
This regressed between 2006-05-03 and 2006-05-04:
http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=all&branch=HEAD&branchtype=match&dir=&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=explicit&mindate=2006-05-03+06&maxdate=2006-05-04+08&cvsroot=%2Fcvsroot
My guess is a regression from bug 334999.
Reporter | ||
Comment 1•18 years ago
|
||
It seems your example depended on a bug with our previous code. While we're not doing quite the right thing now, we're closer to the spec.
Those errors are correct, as the testcase includes the following code:
function domouseup(e) {
pathdata="";
el.setAttribute("d",pathdata+"z");
window.onmousemove=null;
}
Thus you're trying to set a path of just "z", which according to the BNF in the SVG specification is invalid, as you need at least a moveto to begin a path.
We should be invalidating the path and showing nothing at mouseup with the current testcase.
Attachment #222632 -
Flags: superreview+
Attachment #222632 -
Flags: review?(roc)
Attachment #222632 -
Flags: review+
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 5•18 years ago
|
||
Verified fixed, using 2006-06-13 trunk build on windows.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•