Skip to content

Commit

Permalink
Remove error checking for <body> attrs
Browse files Browse the repository at this point in the history
  • Loading branch information
Sashko Stubailo committed Feb 25, 2015
1 parent d0ddf5c commit 5cbe84e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions packages/templating/plugin/html_scanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,12 +172,9 @@ html_scanner = {
} else {
// <body>
if (hasAttribs) {
for(var attr in attribs) {
if (this.bodyAttributes.indexOf(attr) !== -1) {
throwParseError('Tag ' + attr + ' already defined on body.');
}
this.bodyAttributes.push(attr);
}
// XXX we would want to throw an error here if we have duplicate
// attributes, but this is complex to do with the current build system
// so we won't.
results.js += "\nMeteor.startup(function() { $('body').attr(" + JSON.stringify(attribs) + "); });\n";
}

Expand Down

0 comments on commit 5cbe84e

Please sign in to comment.