Update canonicalizeHtml list of DOMRange/DOMBackend element properties.

Fixes "ui hooks - nested domrange" test in IE8.
This commit is contained in:
Emily Stark
2014-07-15 13:32:22 -07:00
parent 12c60075a2
commit 2a382cfb8c

View File

@@ -23,7 +23,9 @@ canonicalizeHtml = function(html) {
attrs = attrs.replace(/jQuery[0-9]+="[0-9]+"/g, ' ');
// Similarly for expando properties used to DOMBackend to keep
// track of callbacks to fire when an element is removed
attrs = attrs.replace(/\$meteor_ui_removal_callbacks="[^"]*"/g, ' ');
attrs = attrs.replace(/\$blaze_teardown_callbacks="[^"]*"/g, ' ');
// And by DOMRange to keep track of the element's DOMRange
attrs = attrs.replace(/\$blaze_range="[^"]*"/g, ' ');
attrs = attrs.replace(/\s*=\s*/g, '=');
attrs = attrs.replace(/^\s+/g, '');