Fix failing test in manipulation. Empty string values are acceptable.

This commit is contained in:
Timmy Willison 2013-04-18 14:00:13 -04:00
parent 3c7dd23d1f
commit 157aeb7c37

View File

@ -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 ) {