selectivizr icon indicating copy to clipboard operation
selectivizr copied to clipboard

data URIs not recognized

Open crdumoul opened this issue 12 years ago • 4 comments

Stylesheets that are included as a data URI should be ignored. Currently, selectivizr thinks the data URI is an external link and tries to download the content.

An example of a simple stylesheet data URI is:

crdumoul avatar Dec 06 '11 16:12 crdumoul

Even better than ignoring the data URI would be to decode it and still transform the data.

crdumoul avatar Dec 06 '11 16:12 crdumoul

Any thought on this?

darkwing avatar Jan 06 '14 22:01 darkwing

There is a test for data URI's. What's not working? https://github.com/keithclark/selectivizr/blob/master/tests/master/index.html#L132-L135

keithclark avatar Jan 08 '14 00:01 keithclark

Oh, my bad -- I didn't see DataURI's in the feature list. Rock on!

David Walsh

http://davidwalsh.name http://twitter.com/davidwalshblog http://github.com/darkwing

On Tue, Jan 7, 2014 at 6:29 PM, Keith Clark [email protected]:

There is a test for data URI's. What's not working? https://github.com/keithclark/selectivizr/blob/master/tests/master/index.html#L132-L135

— Reply to this email directly or view it on GitHubhttps://github.com/keithclark/selectivizr/issues/26#issuecomment-31795027 .

darkwing avatar Jan 08 '14 00:01 darkwing