chenghong / domassistant

Automatically exported from code.google.com/p/domassistant
1 stars 0 forks source link

Setting DOM Attributes is broken in IE9 #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Setting multiple attributes on an element with DOMAssistant.setAttributes() 
causes a Javascript error in IE9.  This is because IE9 sticks closer to the 
spec for document.createElement() so we can't just dump an HTML string into it 
anymore.

This patch contains a fix that checks to see if we can use an HTML string with 
document.createElement() and sets a flag saying whether we can, (in 
DOMAssistant.js), then uses that flag when determining how to update DOM 
attributes, (DOMAssistantContent.js).

Note the DOMAssistant.js patch also contains a patch for Issue 32.

Original issue reported on code.google.com by johnbea...@gmail.com on 17 Nov 2011 at 4:02

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by chengh...@gmail.com on 18 Nov 2011 at 8:36