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

See Also:


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.