mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
fixes #251. inline text in top element
This commit is contained in:
parent
7d2e12c3dd
commit
fd888bde8d
@ -1135,8 +1135,12 @@ _html2canvas.Parse = function (images, options) {
|
|||||||
svgDOMRender(document.documentElement, stack);
|
svgDOMRender(document.documentElement, stack);
|
||||||
}
|
}
|
||||||
|
|
||||||
Array.prototype.slice.call(element.children, 0).forEach(function(childElement) {
|
_html2canvas.Util.Children(element).forEach(function(node) {
|
||||||
parseElement(childElement, stack);
|
if (node.nodeType === 1) {
|
||||||
|
parseElement(node, stack);
|
||||||
|
} else if (node.nodeType === 3) {
|
||||||
|
renderText(element, node, stack);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
stack.backgroundColor = getCSS(document.documentElement, "backgroundColor");
|
stack.backgroundColor = getCSS(document.documentElement, "backgroundColor");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user