Test = Test8 = (function () { var release = 8; var NO = 0, YES = 1, OLD = 2, BUGGY = 4, PREFIX = 8, BLOCKED = 16, DISABLED = 32, UNCONFIRMED = 64, UNKNOWN = 128, EXPERIMENTAL = 256; var blacklists = []; var testsuite = [ /* doctype */ function (results) { results.addItem({ key: 'parsing.doctype', passed: document.compatMode == 'CSS1Compat' }); }, /* tokenizer */ function (results) { var result = true; var e = document.createElement('div'); try { e.innerHTML = ""; result &= e.firstChild && e.firstChild.nodeName == "DIV"; result &= e.firstChild && (e.firstChild.attributes[0].nodeName == "\"foo" || e.firstChild.attributes[0].name == "\"foo"); e.innerHTML = ""; result &= e.firstChild && e.firstChild.getAttribute("href") == "\nbar"; e.innerHTML = ""; result &= e.firstChild == null; e.innerHTML = "\u000D"; result &= e.firstChild && e.firstChild.nodeValue == "\u000A"; e.innerHTML = "⟨⟩"; result &= e.firstChild.nodeValue == "\u27E8\u27E9"; e.innerHTML = "'"; result &= e.firstChild.nodeValue == "'"; e.innerHTML = "ⅈ"; result &= e.firstChild.nodeValue == "\u2148"; e.innerHTML = "𝕂"; result &= e.firstChild.nodeValue == "\uD835\uDD42"; e.innerHTML = "∉"; result &= e.firstChild.nodeValue == "\u2209"; e.innerHTML = ''; result &= e.firstChild && e.firstChild.nodeType == 8 && e.firstChild.nodeValue == '?import namespace="foo" implementation="#bar"'; e.innerHTML = ''; result &= e.firstChild && e.firstChild.nodeType == 8 && e.firstChild.nodeValue == 'foo--bar'; e.innerHTML = ''; result &= e.firstChild && e.firstChild.nodeType == 8 && e.firstChild.nodeValue == '[CDATA[x]]'; e.innerHTML = "-->"; result &= e.firstChild && e.firstChild.firstChild && e.firstChild.firstChild.nodeValue == ""; result &= e.firstChild && e.firstChild.firstChild && e.firstChild.firstChild.nodeValue == ""; result &= e.firstChild && e.firstChild.firstChild && e.firstChild.firstChild.nodeValue == ""; result &= e.firstChild && e.firstChild.firstChild && e.firstChild.firstChild.nodeValue == "