2018-02-15 16:40:34 +03:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>element render test</title>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
|
|
<script>
|
|
|
|
h2cOptions = {onclone: function(document) {
|
2019-05-26 01:54:41 +03:00
|
|
|
var remove = document.querySelector('.ignored');
|
2018-02-15 16:40:34 +03:00
|
|
|
remove.parentNode.removeChild(remove);
|
|
|
|
}};
|
|
|
|
</script>
|
|
|
|
<script type="text/javascript" src="../../test.js"></script>
|
|
|
|
<style>
|
|
|
|
#div1 {
|
|
|
|
|
|
|
|
width: 100px;
|
|
|
|
height: 100px;
|
|
|
|
background: green;
|
|
|
|
}
|
|
|
|
|
|
|
|
#ignored, .ignored {
|
|
|
|
background: red;
|
|
|
|
width: 100px;
|
|
|
|
height: 100px;
|
|
|
|
}
|
|
|
|
|
|
|
|
body, html {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="ignored">
|
|
|
|
ignore during onclone
|
|
|
|
</div>
|
|
|
|
<div id="div1">
|
|
|
|
great success
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|