Permalink
Browse files

Merge pull request #60 from gratex/fix-vml-behavior

URLs that contain only fragment will not be processed by build
  • Loading branch information...
2 parents 3ab191b + de8cbe1 commit eddc8c9cec056f50a248fe0ab2ae510fa75adeeb @kriszyp committed on GitHub Jan 13, 2017
Showing with 3 additions and 0 deletions.
  1. +3 −0 build.js
View
@@ -255,6 +255,9 @@ function processCss(cssText, basePath, cssPath, inlineAllResources){
if(url.match(/^data:/)){
return url;
}
+ if(/^#/.test(url)){ //do not replace urls which have only fragment (e.g. VML behavior property: "behavior: url(#default#VML);"")
+ return url;
+ }
if(inlineAllResources || /#inline$/.test(url)){
// we can inline the resource
suffix = url.match(/\.(\w+)(#|\?|$)/);

0 comments on commit eddc8c9

Please sign in to comment.