modernizr
Version:
Modernizr is a JavaScript library that detects HTML5 and CSS3 features in the user’s browser.
15 lines (14 loc) • 458 B
HTML
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Untitled</title>
</head>
<body><p>true</p>
<script>
<![CDATA[
window.parent.setResult('xhtml0', document.body.firstChild.textContent == 'true');
]]>
</script>
</body>
</html>