Skip to content
Browse files

IE 6 support

  • Loading branch information...
1 parent db6a8e9 commit b4a49151a790ce32005c9af51816597bf6d65c12 Tim Connor committed May 10, 2008
Showing with 5 additions and 5 deletions.
  1. +2 −2 lib/screw.builder.js
  2. +3 −3 lib/screw.css
View
4 lib/screw.builder.js
@@ -19,7 +19,7 @@ var Screw = (function($) {
describe: function(name, fn) {
var describe = $('<li class="describe">');
- $('<h1>').text(name).appendTo(describe);
@tmm1
tmm1 added a note May 12, 2008

$(‘

’) might work better in IE6
@tmm1
tmm1 added a note May 12, 2008

$(‘<h1/%gt;’) might work better in IE6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+ describe.append('<h1>' + name + '</h1>');
describe
.append('<ol class="befores">')
.append('<ul class="its">')
@@ -37,7 +37,7 @@ var Screw = (function($) {
it: function(name, fn) {
var it = $('<li class="it">');
- $('<h2>').text(name).appendTo(it);
+ it.append('<h2>' + name + '</h2>')
it.data('screwunit.run', fn);
this.context[this.context.length-1]
View
6 lib/screw.css
@@ -60,17 +60,17 @@ h1, h2, p {
.describes .describe .its .it.enqueued h2 {
background-color: #CC6600;
- color: white;
+ color: white !important;
}
.describes .describe .its .it.passed h2 {
background-color: #5A753D;
- color: white;
+ color: white !important;
}
.describes .describe .its .it.failed h2 {
background-color: #993300;
- color: white;
+ color: white !important;
}
.describes .describe .its .it.failed p {

0 comments on commit b4a4915

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