Merge branch 'patch-1' of github.com:bensho/html2canvas into bensho-patch-1

This commit is contained in:
Niklas von Hertzen 2013-12-23 16:33:58 +02:00
commit 6201e09118
2 changed files with 8 additions and 1 deletions

View File

@ -77,6 +77,9 @@ _html2canvas.Parse = function (images, options, cb) {
for (i = 0, j = classes.length; i < j; i++) {
classes[i] = classes[i].match(/(^[^:]*)/)[1];
}
// remove empty values, if not could cause invalid selectors with querySelectorAll
classes = classes.filter(function (n) { return n });
}
// Using the list of elements we know how pseudo el styles, create fake pseudo elements.
@ -1270,4 +1273,4 @@ _html2canvas.Parse = function (images, options, cb) {
}
}
}
};
};

View File

@ -5,6 +5,10 @@
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="../test.js"></script>
<style>
:root .text *::before {
content:" root before!";
}
.text *::before {
content:" before!";
}