forked from jeresig/env-js
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reapplied steven woods patches to tables and correction thanks to Bre…
…tt Graf
- Loading branch information
thatcher
committed
Nov 12, 2009
1 parent
ee757ff
commit 09e691c
Showing
7 changed files
with
100 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/** | ||
* @author thatcher | ||
*/ | ||
|
||
load('dist/env.rhino.js'); | ||
|
||
window.location = 'test/html/malformed.html'; | ||
|
||
|
||
var fixture = document.xml, | ||
testhtml = '<!DOCTYPE html><html><head/><body><script>document.write("<a>efg");</script><p>abc</body></html>', | ||
testfragment = '<div>this is a<strong>pig<div>oink oink!', | ||
success = function(){ | ||
print(doc.xml); | ||
}; | ||
|
||
var doc; | ||
//Envjs.logLevel = Envjs.DEBUG; | ||
doc = new DOMParser().parseFromString(testhtml); | ||
print(doc.xml); | ||
|
||
|
||
doc.body.innerHTML = testfragment; | ||
print(doc.xml); | ||
|
||
|
||
/* | ||
var start = new Date().getTime(); | ||
for(var i=0;i<1000;i++){ | ||
parseHtmlDocument(trivial, document, null, null); | ||
} | ||
var stop = new Date().getTime(); | ||
print("1000 parses "+(stop-start)); | ||
*/ |