Closed Bug 1158882 Opened 10 years ago Closed 10 years ago

id with dash doesn't work, in SVG/SMIL begin attribute

Categories

(Core :: SVG, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: mat.dutour, Unassigned)

References

()

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.37 Safari/537.36 Steps to reproduce: Using an id with a dash in a svg's begin attribute http://codepen.io/mathieudutour/pen/xGbpKy Actual results: not beginning http://codepen.io/mathieudutour/pen/xGbpKy Expected results: beginning http://codepen.io/mathieudutour/pen/xGbpKy
Interestingly, Opera 12.16 fails this test as well -- so they have the same bug. I verified that I can fix the codepen simply by tweaking the IDs to not have hyphens. (i.e. s/big-circle/bigcircle/, s/small-circle/smallcircle/) So the hyphen is indeed causing the problem here.
Status: UNCONFIRMED → NEW
Depends on: 537852
Ever confirmed: true
Version: 37 Branch → Trunk
Summary: id with dash in svg's begin attribute → id with dash doesn't work, in SVG/SMIL begin attribute
Blink fails as well. (Chrome version 44.0.2376.0 dev (64-bit))
It's not a bug a - is treated as the beginning of a number. Something valid would be -1s
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
Good to know! thanks
See Also: → 1660248
You need to log in before you can comment on or make changes to this bug.