WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
110586
$0.style.fill and $0.style.stroke are setting url() values incorrectly
https://bugs.webkit.org/show_bug.cgi?id=110586
Summary
$0.style.fill and $0.style.stroke are setting url() values incorrectly
Jarek Foksa
Reported
2013-02-22 04:35:14 PST
If you set IRI reference (e.g. "url(#someGradientID") as value of element.style.fill or element.style.stroke then the 'url(' prefix and ')' postfix are dropped thus making the resulting inline style invalid. How to reproduce this bug in console ($0 can be any SVG element):
> $0.style.fill = "url(#someID)" >> "url(#someID)" > $0.style.fill >> "#someID" // wrong! should be "url(#someID)" > $0.getAttribute("fill") >> "fill: #someID;" // wrong! should be "fill: url(#someID);"
Attachments
Add attachment
proposed patch, testcase, etc.
Brent Fulgham
Comment 1
2022-07-15 16:05:58 PDT
It's difficult to confirm this bug without a test case. We don't believe there is an ongoing issue here. If you do feel there is a problem, please REOPEN this bug and include a test case illustrating the issue.
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