Skip to content

Commit

Permalink
Fixed some JavaScript syntax errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerjohansson committed Feb 19, 2011
1 parent d9b35d7 commit e8bf820
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions chrome/content/html5validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var html5validator = function()
preferences = {
validatorURL: prefBranch.getCharPref("validatorURL"),
domainsWhitelist: domains,
debug: prefBranch.getBoolPref("debug"),
debug: prefBranch.getBoolPref("debug")
};

},
Expand Down Expand Up @@ -105,7 +105,7 @@ var html5validator = function()
}

return false;
},
};


// adapted from "Html Validator" extension
Expand Down Expand Up @@ -139,12 +139,12 @@ var html5validator = function()
}
}
}
},
};

getActiveDocument = function()
{
return window.content.document;
}
};

// adapted from "Html Validator" extension
getHTMLFromCache = function(doc)
Expand Down Expand Up @@ -225,7 +225,7 @@ var html5validator = function()
}

return s2;
},
};

updateStatusBar = function(errors, warnings, status)
{
Expand Down Expand Up @@ -277,7 +277,7 @@ var html5validator = function()
statusBarPanel.tooltipText = "HTML5 Validator: No errors!";
}
}
},
};

validateDoc = function(html)
{
Expand Down Expand Up @@ -320,7 +320,7 @@ var html5validator = function()
xhr.open("POST", preferences.validatorURL + "?out=json", true);
xhr.setRequestHeader("Content-Type", "text/html;charset=UTF-8");
xhr.send(html);
},
};

// Create a temporary form to post the document data to the validator.
showValidationResults = function()
Expand Down Expand Up @@ -359,7 +359,7 @@ var html5validator = function()

showOptions: function()
{
window.openDialog("chrome://html5validator/content/options.xul", "", null)
window.openDialog("chrome://html5validator/content/options.xul", "", null);
}
};
}();
Expand Down

0 comments on commit e8bf820

Please sign in to comment.