Skip to content

Commit

Permalink
stable 1.2.0.1, added tests to ensure script tags appended to documen…
Browse files Browse the repository at this point in the history
…t.head are executed. added some safe defaults for use in single threaded environments like GAE, window specs will run without http server, xhr spec still requires it. I'l like to simplify this. will be focusing on completing form submission and link following (ie window level default behaviors if event is not stopped.)
  • Loading branch information
thatcher committed Mar 3, 2010
1 parent 31c9cbe commit 88c5701
Show file tree
Hide file tree
Showing 20 changed files with 156 additions and 101 deletions.
4 changes: 1 addition & 3 deletions Makefile
@@ -1,7 +1,5 @@
JAR = java -jar rhino/js.jar
JAR = java -jar rhino/js.jar -opt -1

test-rhino:
ant -emacs

run-rhino:
echo "load('dist/env.rhino.js');window.location='test/index.html';" | ${JAR}
2 changes: 1 addition & 1 deletion build.properties
Expand Up @@ -2,7 +2,7 @@
PROJECT: env-js
BUILD_MAJOR: 1
BUILD_MINOR: 2
BUILD_ID: 0.0
BUILD_ID: 0.1
BUILD_VERSION: ${BUILD_MAJOR}.${BUILD_MINOR}.${BUILD_ID}
BUILD: ${PROJECT}.${BUILD_VERSION}
VERSION: ${BUILD} ${DSTAMP}
Expand Down
2 changes: 1 addition & 1 deletion dist/css.js
Expand Up @@ -7,7 +7,7 @@ var CSS2Properties,
CSSStyleSheet;

/*
* Envjs css.1.2.0.0
* Envjs css.1.2.0.1
* Pure JavaScript Browser Environment
* By John Resig <http://ejohn.org/> and the Envjs Team
* Copyright 2008-2010 John Resig, under the MIT License
Expand Down
4 changes: 2 additions & 2 deletions dist/dom.js
@@ -1,5 +1,5 @@
/*
* Envjs dom.1.2.0.0
* Envjs dom.1.2.0.1
* Pure JavaScript Browser Environment
* By John Resig <http://ejohn.org/> and the Envjs Team
* Copyright 2008-2010 John Resig, under the MIT License
Expand Down Expand Up @@ -39,7 +39,7 @@ var Attr,


/*
* Envjs dom.1.2.0.0
* Envjs dom.1.2.0.1
* Pure JavaScript Browser Environment
* By John Resig <http://ejohn.org/> and the Envjs Team
* Copyright 2008-2010 John Resig, under the MIT License
Expand Down
39 changes: 21 additions & 18 deletions dist/env.js
@@ -1,5 +1,5 @@
/*
* Envjs core-env.1.2.0.0
* Envjs core-env.1.2.0.1
* Pure JavaScript Browser Environment
* By John Resig <http://ejohn.org/> and the Envjs Team
* Copyright 2008-2010 John Resig, under the MIT License
Expand Down Expand Up @@ -37,12 +37,12 @@ __this__ = this;
Envjs.appCodeName = "Envjs";

//eg "Gecko/20070309 Firefox/2.0.0.3"
Envjs.appName = "Resig/20070309 PilotFish/1.2.0.0";
Envjs.appName = "Resig/20070309 PilotFish/1.2.0.1";

Envjs.version = "1.6";//?

/*
* Envjs core-env.1.2.0.0
* Envjs core-env.1.2.0.1
* Pure JavaScript Browser Environment
* By John Resig <http://ejohn.org/> and the Envjs Team
* Copyright 2008-2010 John Resig, under the MIT License
Expand Down Expand Up @@ -592,7 +592,7 @@ function appendNode(node, html)

})();
/*
* Envjs dom.1.2.0.0
* Envjs dom.1.2.0.1
* Pure JavaScript Browser Environment
* By John Resig <http://ejohn.org/> and the Envjs Team
* Copyright 2008-2010 John Resig, under the MIT License
Expand Down Expand Up @@ -632,7 +632,7 @@ var Attr,


/*
* Envjs dom.1.2.0.0
* Envjs dom.1.2.0.1
* Pure JavaScript Browser Environment
* By John Resig <http://ejohn.org/> and the Envjs Team
* Copyright 2008-2010 John Resig, under the MIT License
Expand Down Expand Up @@ -3787,7 +3787,7 @@ __extend__(XMLSerializer.prototype, {

})();
/*
* Envjs event.1.2.0.0
* Envjs event.1.2.0.1
* Pure JavaScript Browser Environment
* By John Resig <http://ejohn.org/> and the Envjs Team
* Copyright 2008-2010 John Resig, under the MIT License
Expand All @@ -3807,7 +3807,7 @@ var Event,
//among other things like general profiling
Aspect;
/*
* Envjs event.1.2.0.0
* Envjs event.1.2.0.1
* Pure JavaScript Browser Environment
* By John Resig <http://ejohn.org/> and the Envjs Team
* Copyright 2008-2010 John Resig, under the MIT License
Expand Down Expand Up @@ -4632,7 +4632,7 @@ EventException.UNSPECIFIED_EVENT_TYPE_ERR = 0;
})();

/*
* Envjs timer.1.2.0.0
* Envjs timer.1.2.0.1
* Pure JavaScript Browser Environment
* By John Resig <http://ejohn.org/> and the Envjs Team
* Copyright 2008-2010 John Resig, under the MIT License
Expand All @@ -4648,7 +4648,7 @@ var setTimeout,
clearInterval;

/*
* Envjs timer.1.2.0.0
* Envjs timer.1.2.0.1
* Pure JavaScript Browser Environment
* By John Resig <http://ejohn.org/> and the Envjs Team
* Copyright 2008-2010 John Resig, under the MIT License
Expand Down Expand Up @@ -4898,7 +4898,7 @@ Envjs.wait = function(wait) {

})();
/*
* Envjs html.1.2.0.0
* Envjs html.1.2.0.1
* Pure JavaScript Browser Environment
* By John Resig <http://ejohn.org/> and the Envjs Team
* Copyright 2008-2010 John Resig, under the MIT License
Expand Down Expand Up @@ -4948,7 +4948,7 @@ var HTMLDocument,
HTMLUnknownElement;

/*
* Envjs html.1.2.0.0
* Envjs html.1.2.0.1
* Pure JavaScript Browser Environment
* By John Resig <http://ejohn.org/> and the Envjs Team
* Copyright 2008-2010 John Resig, under the MIT License
Expand Down Expand Up @@ -8042,7 +8042,7 @@ var CSS2Properties,
CSSStyleSheet;

/*
* Envjs css.1.2.0.0
* Envjs css.1.2.0.1
* Pure JavaScript Browser Environment
* By John Resig <http://ejohn.org/> and the Envjs Team
* Copyright 2008-2010 John Resig, under the MIT License
Expand Down Expand Up @@ -8517,7 +8517,7 @@ var XMLParser = {},


/*
* Envjs parser.1.2.0.0
* Envjs parser.1.2.0.1
* Pure JavaScript Browser Environment
* By John Resig <http://ejohn.org/> and the Envjs Team
* Copyright 2008-2010 John Resig, under the MIT License
Expand Down Expand Up @@ -9316,6 +9316,7 @@ var __elementPopped__ = function(ns, name, node){
}
break;
case 'html':
//console.log('html popped');
doc.parsing = false;
//DOMContentLoaded event
if(doc.createEvent){
Expand Down Expand Up @@ -9380,7 +9381,7 @@ __extend__(HTMLElement.prototype,{

})();
/*
* Envjs xhr.1.2.0.0
* Envjs xhr.1.2.0.1
* Pure JavaScript Browser Environment
* By John Resig <http://ejohn.org/> and the Envjs Team
* Copyright 2008-2010 John Resig, under the MIT License
Expand All @@ -9395,7 +9396,7 @@ var Location,
XMLHttpRequest;

/*
* Envjs xhr.1.2.0.0
* Envjs xhr.1.2.0.1
* Pure JavaScript Browser Environment
* By John Resig <http://ejohn.org/> and the Envjs Team
* Copyright 2008-2010 John Resig, under the MIT License
Expand Down Expand Up @@ -9969,6 +9970,9 @@ var __exchangeHTMLDocument__ = function(doc, text, url){
Envjs.wait();
}catch(e){
console.log('parsererror %s', e);
try{
console.log('document \n %s', doc.documentElement.outerHTML);
}catch(ee){}
doc = new HTMLDocument(new DOMImplementation(), doc.ownerWindow);
html = doc.createElement('html');
head = doc.createElement('head');
Expand All @@ -9980,6 +9984,7 @@ var __exchangeHTMLDocument__ = function(doc, text, url){
html.appendChild(head);
html.appendChild(body);
doc.appendChild(html);
//console.log('default error document \n %s', doc.documentElement.outerHTML);

//DOMContentLoaded event
if(doc.createEvent){
Expand Down Expand Up @@ -10009,8 +10014,6 @@ var __exchangeHTMLDocument__ = function(doc, text, url){
}
}
};


/**
*
* @class XMLHttpRequest
Expand Down Expand Up @@ -10157,7 +10160,7 @@ var Window,


/*
* Envjs window.1.2.0.0
* Envjs window.1.2.0.1
* Pure JavaScript Browser Environment
* By John Resig <http://ejohn.org/> and the Envjs Team
* Copyright 2008-2010 John Resig, under the MIT License
Expand Down

0 comments on commit 88c5701

Please sign in to comment.