summaryrefslogtreecommitdiff
path: root/dom/xslt/crashtests/602115.html
blob: ad42d76a05f8f2ef0d69bf93c7e384417fbea080 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<script>

try {
  var docType = document.implementation.createDocumentType(undefined, '', '');
  var doc = document.implementation.createDocument('', '', null);
  var xp = new XSLTProcessor;
  xp.importStylesheet(doc);
  xp.transformToDocument(docType);
}
catch (ex) {}

try {
  docType = document.implementation.createDocumentType(undefined, '', '');
  doc = document.implementation.createDocument('', '', null);
  xp = new XSLTProcessor;
  xp.importStylesheet(doc);
  xp.transformToFragment(docType, document);
}
catch (ex) {}

</script>