mirror of
https://github.com/jquery/jquery.git
synced 2026-02-06 19:05:12 -05:00
Fix #12048. Set attributes for XML fragments. Close gh-965.
This commit is contained in:
@@ -523,7 +523,7 @@ if ( !getSetAttribute ) {
|
||||
// Set the existing or create a new attribute node
|
||||
var ret = elem.getAttributeNode( name );
|
||||
if ( !ret ) {
|
||||
ret = document.createAttribute( name );
|
||||
ret = elem.ownerDocument.createAttribute( name );
|
||||
elem.setAttributeNode( ret );
|
||||
}
|
||||
return ( ret.value = value + "" );
|
||||
|
||||
Reference in New Issue
Block a user