From fc4c6915344625fadf55ca25d3cf9094544d301a Mon Sep 17 00:00:00 2001 From: John Resig Date: Tue, 15 Sep 2009 16:46:15 +0000 Subject: [PATCH] Adding some fixes for commit [6537]. If there's leading whitespace, or if an exception is thrown by innerHTML, we need to use the old style method. --- src/manipulation.js | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/manipulation.js b/src/manipulation.js index b883567..2a1e923 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -189,15 +189,21 @@ jQuery.fn.extend({ // See if we can take a shortcut and just use innerHTML } else if ( typeof value === "string" && !/