Commit 157aeb7c authored by Timmy Willison's avatar Timmy Willison

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

parent 3c7dd23d
......@@ -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 ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment