Bug 113573 - Retrieved style property is missing url(…)
Summary: Retrieved style property is missing url(…)
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac (Intel) OS X 10.8
: P2 Normal
Assignee: Nobody
URL: http://bl.ocks.org/jasondavies/5270648
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-29 06:05 PDT by Jason Davies
Modified: 2022-05-30 07:01 PDT (History)
2 users (show)

See Also:


Attachments
Safari 15.5 output same as other browsers (1.59 MB, image/png)
2022-05-30 05:41 PDT, Ahmad Saleem
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Davies 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.
Comment 1 Ahmad Saleem 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!
Comment 2 Jason Davies 2022-05-30 07:01:52 PDT
I'm guessing this has been fixed at some point in the last 9 years!