summaryrefslogtreecommitdiffstats
path: root/layout/reftests/xul-document-load/test006-007.js
blob: 96fd74fe4c7d024788d32df6bc49c81ee168138f (plain)
1
2
3
4
5
6
7
8
9
10
11
/* Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/licenses/publicdomain/  */

function checkDOM(target, data) {
  // assuming whitespace and the XML declaration are not in the DOM.
  var piNode = document.firstChild;
  if (!piNode || piNode.nodeType != Node.PROCESSING_INSTRUCTION_NODE ||
      piNode.target != target || piNode.data != data) {
    document.documentElement.style.backgroundColor = "red";
  }
}