diff --git a/lib/file-visitor.js b/lib/file-visitor.js index 4482d7c..b6b58f3 100644 --- a/lib/file-visitor.js +++ b/lib/file-visitor.js @@ -26,8 +26,13 @@ module.exports = function(less) { if (!this._inRule) { return URLNode; } + if (URLNode.value && URLNode.value.value && URLNode.value.value.indexOf('#') === 0) { + // Might be part of a VML url-node value like: + // ``behavior:url(#default#VML);`` + return URLNode; + } return new less.tree.Call('url', [new ParamStringReplacementNode(URLNode.value, options)], URLNode.index || 0, URLNode.currentFileInfo); } }; return SrcReplacement; -}; \ No newline at end of file +};