diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/attributes.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/attributes.js b/src/attributes.js index 5a6749982..68e763e09 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -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 + "" ); |