diff --git a/packages/test-helpers/canonicalize_html.js b/packages/test-helpers/canonicalize_html.js index f4869b7487..73db66ecda 100644 --- a/packages/test-helpers/canonicalize_html.js +++ b/packages/test-helpers/canonicalize_html.js @@ -16,6 +16,10 @@ canonicalizeHtml = function(html) { attrs = attrs.replace(/sizcache[0-9]+="[^"]*"/g, ' '); // Similarly for expando properties used by jQuery to track data. 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(/\s*=\s*/g, '='); attrs = attrs.replace(/^\s+/g, ''); attrs = attrs.replace(/\s+$/g, '');