[PATCH] invalid xhtml code in jquery.js

[PATCH] invalid xhtml code in jquery.js


Google Chrome dies when it attempts to process this xhtml with:
NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7
diff --git a/jquery.js b/jquery.js
--- a/jquery.js
+++ b/jquery.js
@@ -3437,7 +3437,7 @@
initialize: function() {
if ( this.initialized ) return;
var body = document.body, container =
document.createElement('div'), innerDiv, checkDiv, table, 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];