You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is causing me trouble, I can't figure out any great workarounds except manual dom manipulation. Any advise?
Edit my workaround was to override:
protectedstatic_processStyleText(cssText: string,_baseURI: string): string{// note - could alternatively incorporate the fix from #5693 returncssText;}
Description
Single quotes and double quotes are removed from CSS url parameter, breaking some url definitions such as
Live Demo
https://jsfiddle.net/jpradell/kmygf23c/6/
Steps to Reproduce
Create a polymer element with style in it and url including single or double quote, such as
Expected Results
CSS property with
url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10'><circle cx='5' cy='5' r='4'/></svg>");
Actual Results
CSS property with
url(data:image/svg+xml;utf8,<svg xmlns=http://www.w3.org/2000/svg width=10 height=10><circle cx=5 cy=5 r=4/></svg>);
Polymer Code Causing the issue
In Polymer source https://github.com/Polymer/polymer/blob/master/lib/utils/resolve-url.js#L81
All single quotes and double quotes are removed.
Browsers Affected
Versions
The text was updated successfully, but these errors were encountered: