summaryrefslogtreecommitdiffstats
path: root/WebCore/benchmarks/parser/html-parser.html
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/benchmarks/parser/html-parser.html')
-rw-r--r--WebCore/benchmarks/parser/html-parser.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/WebCore/benchmarks/parser/html-parser.html b/WebCore/benchmarks/parser/html-parser.html
index 24810da..56a40c3 100644
--- a/WebCore/benchmarks/parser/html-parser.html
+++ b/WebCore/benchmarks/parser/html-parser.html
@@ -21,8 +21,9 @@ function parse(html) {
iframe.src = "about:blank";
iframe.style.display = "none";
document.body.appendChild(iframe)
- var detachedElement = iframe.contentDocument.createElement("div");
- detachedElement.innerHTML = html;
+ iframe.contentDocument.open();
+ iframe.contentDocument.write(html);
+ iframe.contentDocument.close();
document.body.removeChild(iframe)
}