mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Fix failing test in manipulation. Empty string values are acceptable.
This commit is contained in:
parent
3c7dd23d1f
commit
157aeb7c37
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user