Skip to content
Browse files

Added some missing spaces - helps to calm XHTML error messages in Saf…

…ari.
  • Loading branch information...
1 parent 4e7d565 commit 7647cebc3929337d1e77069c8620158dcf84ff20 @jeresig jeresig committed Jan 20, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/offset.js
View
2 src/offset.js
@@ -51,7 +51,7 @@ jQuery.offset = {
initialize: function() {
if ( this.initialized ) return;
var body = document.body, container = document.createElement('div'), innerDiv, checkDiv, table, td, rules, prop, bodyMarginTop = body.style.marginTop,
- html = '<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"cellpadding="0"cellspacing="0"><tr><td></td></tr></table>';
+ html = '<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';
rules = { position: 'absolute', top: 0, left: 0, margin: 0, border: 0, width: '1px', height: '1px', visibility: 'hidden' };
for ( prop in rules ) container.style[prop] = rules[prop];

0 comments on commit 7647ceb

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