-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated runner, so global dom elements are setup in the test document…
…s instead of stomping all over the globals. also fixed a domtohtml regression
- Loading branch information
Showing
11 changed files
with
116 additions
and
204 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,6 @@ var singleTags = { | |
input: 1, | ||
isindex: 1, | ||
link: 1, | ||
meta: 1, | ||
param: 1, | ||
embed: 1 | ||
}; | ||
|
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 |
---|---|---|
@@ -1,26 +1,27 @@ | ||
var dom = require(__dirname + "/../../../../lib/jsdom/level1/core").dom.level1.core; | ||
exports.hc_nodtdstaff = function() { | ||
|
||
var doc = new Document("html"); | ||
var implementation = new DOMImplementation(doc, { | ||
var doc = new dom.Document("html"); | ||
var implementation = new dom.DOMImplementation(doc, { | ||
"XML" : "1.0" | ||
}); | ||
|
||
doc.implementation = implementation; | ||
|
||
/* | ||
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>hc_nodtdstaff</title></head><body> | ||
<p> | ||
<em>EMP0001</em> | ||
<strong>Margaret Martin</strong> | ||
<code>Accountant</code> | ||
<sup>56,000</sup> | ||
<var>Female</var> | ||
<acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym> | ||
</p> | ||
</body></html> | ||
*/ | ||
|
||
|
||
/* | ||
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>hc_nodtdstaff</title></head><body> | ||
<p> | ||
<em>EMP0001</em> | ||
<strong>Margaret Martin</strong> | ||
<code>Accountant</code> | ||
<sup>56,000</sup> | ||
<var>Female</var> | ||
<acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym> | ||
</p> | ||
</body></html> | ||
*/ | ||
|
||
doc.normalize(); | ||
return doc; | ||
}; | ||
}; |
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 |
---|---|---|
@@ -1,26 +1,27 @@ | ||
var dom = require(__dirname + "/../../../../lib/jsdom/level1/core").dom.level1.core; | ||
exports.hc_nodtdstaff = function() { | ||
|
||
var doc = new Document("html"); | ||
var implementation = new DOMImplementation(doc, { | ||
var doc = new dom.Document("html"); | ||
var implementation = new dom.DOMImplementation(doc, { | ||
"XML" : "1.0" | ||
}); | ||
|
||
doc.implementation = implementation; | ||
|
||
/* | ||
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>hc_nodtdstaff</title></head><body> | ||
<p> | ||
<em>EMP0001</em> | ||
<strong>Margaret Martin</strong> | ||
<code>Accountant</code> | ||
<sup>56,000</sup> | ||
<var>Female</var> | ||
<acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym> | ||
</p> | ||
</body></html> | ||
*/ | ||
|
||
|
||
/* | ||
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>hc_nodtdstaff</title></head><body> | ||
<p> | ||
<em>EMP0001</em> | ||
<strong>Margaret Martin</strong> | ||
<code>Accountant</code> | ||
<sup>56,000</sup> | ||
<var>Female</var> | ||
<acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym> | ||
</p> | ||
</body></html> | ||
*/ | ||
|
||
doc.normalize(); | ||
return doc; | ||
}; | ||
}; |
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 |
---|---|---|
@@ -1,26 +1,27 @@ | ||
var dom = require(__dirname + "/../../../../lib/jsdom/level1/core").dom.level1.core; | ||
exports.hc_nodtdstaff = function() { | ||
|
||
var doc = new Document("html"); | ||
var implementation = new DOMImplementation(doc, { | ||
var doc = new dom.Document("html"); | ||
var implementation = new dom.DOMImplementation(doc, { | ||
"XML" : "1.0" | ||
}); | ||
|
||
doc.implementation = implementation; | ||
|
||
/* | ||
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>hc_nodtdstaff</title></head><body> | ||
<p> | ||
<em>EMP0001</em> | ||
<strong>Margaret Martin</strong> | ||
<code>Accountant</code> | ||
<sup>56,000</sup> | ||
<var>Female</var> | ||
<acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym> | ||
</p> | ||
</body></html> | ||
*/ | ||
|
||
|
||
/* | ||
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>hc_nodtdstaff</title></head><body> | ||
<p> | ||
<em>EMP0001</em> | ||
<strong>Margaret Martin</strong> | ||
<code>Accountant</code> | ||
<sup>56,000</sup> | ||
<var>Female</var> | ||
<acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym> | ||
</p> | ||
</body></html> | ||
*/ | ||
|
||
doc.normalize(); | ||
return doc; | ||
}; | ||
}; |
Oops, something went wrong.