aboutsummaryrefslogtreecommitdiffstats
path: root/src/offset.js
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2009-01-20 15:46:40 +0000
committerJohn Resig <jeresig@gmail.com>2009-01-20 15:46:40 +0000
commit7647cebc3929337d1e77069c8620158dcf84ff20 (patch)
treefff6195da2401912fae53c3641f42da92eb77cb6 /src/offset.js
parent4e7d565e50b4705f1daed7100937591330af34c4 (diff)
downloadjquery-7647cebc3929337d1e77069c8620158dcf84ff20.tar.gz
jquery-7647cebc3929337d1e77069c8620158dcf84ff20.zip
Added some missing spaces - helps to calm XHTML error messages in Safari.
Diffstat (limited to 'src/offset.js')
-rw-r--r--src/offset.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/offset.js b/src/offset.js
index cc1b87440..69f624dbe 100644
--- a/src/offset.js
+++ b/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];