crop_rotate
Run
<!DOCTYPE html> <html> <head> <title> HTML | DOM isEqualNode() Method </title> <!--script to check if nodes are equal--> <script> function isequal() { var out = document.getElementById("result"); var divele = document.getElementsByTagName("div"); out.innerHTML += "element 1 equals element 1: " + divele[0].isEqualNode(divele[0]) + "<br/>"; out.innerHTML += "element 1 equals element 2: " + divele[0].isEqualNode(divele[1]) + "<br/>"; out.innerHTML += "element 1 equals element 3: " + divele[0].isEqualNode(divele[2]) + "<br/>"; } </script> </head> <body> <h3>Comparing the div elements.</h3> <!-- 3 div elements--> <div>CloseTag</div> <button onclick="isequal()">Check</button> <p id="result"></p> </body> </html>
PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCg0KPGhlYWQ+DQoJPHRpdGxlPg0KCQlIVE1MIHwgRE9NIGlzRXF1YWxOb2RlKCkgTWV0aG9kDQoJPC90aXRsZT4NCgk8IS0tc2NyaXB0IHRvIGNoZWNrIGlmIG5vZGVzIGFyZSBlcXVhbC0tPg0KCTxzY3JpcHQ+DQoJCWZ1bmN0aW9uIGlzZXF1YWwoKSB7DQoJCQl2YXIgb3V0ID0gZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoInJlc3VsdCIpOw0KCQkJdmFyIGRpdmVsZSA9IGRvY3VtZW50LmdldEVsZW1lbnRzQnlUYWdOYW1lKCJkaXYiKTsNCgkJCW91dC5pbm5lckhUTUwgKz0gImVsZW1lbnQgMSBlcXVhbHMgZWxlbWVudCAxOiAiICsNCgkJCQlkaXZlbGVbMF0uaXNFcXVhbE5vZGUoZGl2ZWxlWzBdKSArICI8YnIvPiI7DQoJCQlvdXQuaW5uZXJIVE1MICs9ICJlbGVtZW50IDEgZXF1YWxzIGVsZW1lbnQgMjogIiArDQoJCQkJZGl2ZWxlWzBdLmlzRXF1YWxOb2RlKGRpdmVsZVsxXSkgKyAiPGJyLz4iOw0KCQkJb3V0LmlubmVySFRNTCArPSAiZWxlbWVudCAxIGVxdWFscyBlbGVtZW50IDM6ICIgKw0KC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