crop_rotate
Run
<!DOCTYPE html> <html> <body> <p>Click the buttons to compare the <strong>first item</strong> in two of the lists.</p> <button onclick="myFunction('myList1','myList2')">Compare List 1 and 2</button> <button onclick="myFunction('myList1','myList3')">Compare List 1 and 3</button> <br><br> List 1: <ul id="myList1"><li>Water</li><li>Milk</li></ul> List 2: <ul id="myList2"><li>Coffee</li><li>Tea</li></ul> List 3: <ul id="myList3"><li>Water</li><li>Fire</li></ul> <p><strong>Note:</strong> Internet Explorer 8 and earlier does not support the isEqualNode method.</p> <p id="demo"></p> <script> function myFunction(x,y) { var item1 = document.getElementById(x).firstChild; var item2 = document.getElementById(y).firstChild; var x = item1.isEqualNode(item2); document.getElementById("demo").innerHTML = x; } </script> </body> </html>
PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCjxib2R5Pg0KDQo8cD5DbGljayB0aGUgYnV0dG9ucyB0byBjb21wYXJlIHRoZSA8c3Ryb25nPmZpcnN0IGl0ZW08L3N0cm9uZz4gaW4gdHdvIG9mIHRoZSBsaXN0cy48L3A+DQoNCjxidXR0b24gb25jbGljaz0ibXlGdW5jdGlvbignbXlMaXN0MScsJ215TGlzdDInKSI+Q29tcGFyZSBMaXN0IDEgYW5kIDI8L2J1dHRvbj4NCjxidXR0b24gb25jbGljaz0ibXlGdW5jdGlvbignbXlMaXN0MScsJ215TGlzdDMnKSI+Q29tcGFyZSBMaXN0IDEgYW5kIDM8L2J1dHRvbj4NCjxicj48YnI+DQoNCkxpc3QgMToNCjx1bCBpZD0ibXlMaXN0MSI+PGxpPldhdGVyPC9saT48bGk+TWlsazwvbGk+PC91bD4NCkxpc3QgMjoNCjx1bCBpZD0ibXlMaXN0MiI+PGxpPkNvZmZlZTwvbGk+PGxpPlRlYTwvbGk+PC91bD4NCkxpc3QgMzoNCjx1bCBpZD0ibXlMaXN0MyI+PGxpPldhdGVyPC9saT48bGk+RmlyZTwvbGk+PC91bD4NCg0KPHA+PHN0cm9uZz5Ob3RlOjwvc3Ryb25nPiBJb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