X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Foffset.js;h=69f624dbe46c8dd56ffec49f52e4bd254b145622;hb=72cf42bcbd4f7dc351d313c65d8bce113981d159;hp=44523d8ef6b9634ea7afa8687a180b85cf1e6f48;hpb=0935f4a0b1281f5d09685fa08b86944b2421747f;p=jquery.git diff --git a/src/offset.js b/src/offset.js index 44523d8..69f624d 100644 --- a/src/offset.js +++ b/src/offset.js @@ -50,10 +50,10 @@ else jQuery.offset = { initialize: function() { if ( this.initialized ) return; - var body = document.body, container = document.createElement('div'), innerDiv, checkDiv, table, rules, prop, bodyMarginTop = body.style.marginTop, - html = '
'; + var body = document.body, container = document.createElement('div'), innerDiv, checkDiv, table, td, rules, prop, bodyMarginTop = body.style.marginTop, + html = '
'; - rules = { position: 'absolute', top: 0, left: 0, margin: 0, border: 0, width: '1px', height: '1px', visibility: 'hidden' } + 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]; container.innerHTML = html;