<html> <head> </head> <body> <script> try { document.body.compareDocumentPosition(<foo/>); } catch (e) { } </script> </body> </html>