Bug 113573

Summary: Retrieved style property is missing url(…)
Product: WebKit Reporter: Jason Davies <jason.davies>
Component: SVGAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: ahmad.saleem792, zimmermann
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac (Intel)   
OS: OS X 10.8   
URL: http://bl.ocks.org/jasondavies/5270648
Attachments:
Description Flags
Safari 15.5 output same as other browsers none

Jason Davies
Reported 2013-03-29 06:05:56 PDT
Retrieving a style property value such as fill: url(#fill) returns "#fill", when it should be "url(#fill)". This occurs when using window.getComputedStyle as well as retrieving the property from the element style directly. This breaks code that needs to modify such an IRI value, e.g. it can be mistaken for a hex colour. It also breaks any code that attempts to dump the SVG programmatically, since fill: #fill is invalid.
Attachments
Safari 15.5 output same as other browsers (1.59 MB, image/png)
2022-05-30 05:41 PDT, Ahmad Saleem
no flags
Ahmad Saleem
Comment 1 2022-05-30 05:41:58 PDT
Created attachment 459859 [details] Safari 15.5 output same as other browsers It is producing same output as other browsers as shown in attached screenshot. I would consider it as "Not Applicable", if it is Web Spec issue, it would be something to sort out differently. In case, there was an issue in my testing, please re-test as well. Thanks!
Jason Davies
Comment 2 2022-05-30 07:01:52 PDT
I'm guessing this has been fixed at some point in the last 9 years!
Note You need to log in before you can comment on or make changes to this bug.