From f418027f54218355d90eb4b7e80059cb134fac0f Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Sun, 18 May 2008 01:22:00 -0700 Subject: [PATCH] Editor.normalize_html() now handles an empty/null html parameter. --- static/js/Editor.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static/js/Editor.js b/static/js/Editor.js index 305b53a..b9a3f25 100644 --- a/static/js/Editor.js +++ b/static/js/Editor.js @@ -718,6 +718,8 @@ Editor.prototype.summarize = function () { // return the given html in a normal form. this makes html string comparisons more accurate normalize_html = function ( html ) { + if ( !html ) return html; + // remove any "pulldown" attributes, which get added in IE whenever link.pulldown is set var normal_html = html.replace( /\s+pulldown="null"/g, "" );