2017-12-07 11:12:39 +03:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>element render test</title>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
|
|
<script>
|
2018-02-15 16:22:51 +03:00
|
|
|
h2cOptions = {ignoreElements: function(element) {
|
|
|
|
return element.className === 'ignored';
|
|
|
|
}};
|
2017-12-07 11:12:39 +03:00
|
|
|
</script>
|
|
|
|
<script type="text/javascript" src="../../test.js"></script>
|
|
|
|
<style>
|
|
|
|
#div1 {
|
|
|
|
|
|
|
|
width: 100px;
|
|
|
|
height: 100px;
|
|
|
|
background: green;
|
|
|
|
}
|
|
|
|
|
2018-02-15 16:22:51 +03:00
|
|
|
#ignored, .ignored {
|
2017-12-07 11:12:39 +03:00
|
|
|
background: red;
|
|
|
|
width: 100px;
|
|
|
|
height: 100px;
|
|
|
|
}
|
|
|
|
|
|
|
|
body, html {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="ignored" data-html2canvas-ignore>
|
|
|
|
great failure
|
|
|
|
</div>
|
2018-02-15 16:22:51 +03:00
|
|
|
<div class="ignored">
|
|
|
|
ignore predicate
|
|
|
|
</div>
|
2017-12-07 11:12:39 +03:00
|
|
|
<div id="div1">
|
|
|
|
great success
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|