Skip to content
Browse files

Add some more tests.

  • Loading branch information...
1 parent a381d7d commit 067dfd574fbe231e8c88e24ed738238eea03fb72 @Ms2ger Ms2ger committed May 28, 2012
Showing with 28 additions and 0 deletions.
  1. +28 −0 tests/innerhtml-02.html
View
28 tests/innerhtml-02.html
@@ -64,6 +64,34 @@
return el.firstChild;
},
"<span><\/span>"
+ ],
+ [
+ function() {
+ var el = document.createElement("div");
+ el.appendChild(document.createElement("style"))
+ .appendChild(document.createElement("span"));
+ return el;
+ },
+ "<style><span><\/span><\/style>"
+ ],
+ [
+ function() {
+ var el = document.createElement("div");
+ el.appendChild(document.createElement("style"))
+ .appendChild(document.createTextNode("<"));
+ return el;
+ },
+ "<style><<\/style>"
+ ],
+ [
+ function() {
+ var el = document.createElement("div");
+ el.appendChild(document.createElement("style"))
+ .appendChild(document.createElement("span"))
+ .appendChild(document.createTextNode("<"));
+ return el;
+ },
+ "<style><span>&lt;<\/span><\/style>"
]
];
voidElements.forEach(function(tag) {

0 comments on commit 067dfd5

Please sign in to comment.
Something went wrong with that request. Please try again.