From 157aeb7c3792c5f5ee32d6d64fe49709d011c4bf Mon Sep 17 00:00:00 2001 From: Timmy Willison Date: Thu, 18 Apr 2013 14:00:13 -0400 Subject: [PATCH] Fix failing test in manipulation. Empty string values are acceptable. --- src/manipulation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/manipulation.js b/src/manipulation.js index 174c7c3d9..8806455eb 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -319,7 +319,7 @@ function manipulationTarget( elem, content ) { // Replace/restore the type attribute of script elements for safe DOM manipulation function disableScript( elem ) { - elem.type = !!jQuery.find.attr( elem, "type" ) + "/" + elem.type; + elem.type = (jQuery.find.attr( elem, "type" ) !== null) + "/" + elem.type; return elem; } function restoreScript( elem ) { -- 2.39.5