andreasgal/dom.js — Issue #13: readyState throwing not yet implemented prevents henri's parser from loading
Author: fzzzy
Created: 2011-10-11 22:37:54+00:00
State: open

I just wanted someplace to stick this patch until readyState is really implemented.

--- a/src/impl/Document.js
+++ b/src/impl/Document.js
@@ -418,7 +418,7 @@ defineLazyProperty(impl, "Document", function() {
referrer: attribute(nyi),
cookie: attribute(nyi, nyi),
lastModified: attribute(nyi),
- readyState: attribute(nyi),
+ readyState: attribute(function() { return "complete" }),
title: attribute(nyi, nyi),
dir: attribute(nyi, nyi),
// Return the first

child of the document element.