Permalink
Browse files

Remove unnecessary usage of getAttributeNode(). Fixes #12072.

  • Loading branch information...
timmywil committed Apr 18, 2013
1 parent 9d16fe6 commit 3ef7a9683b95fa334ab75458a531bb263782c748
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/manipulation.js
@@ -485,8 +485,7 @@ function manipulationTarget( elem, content ) {

// Replace/restore the type attribute of script elements for safe DOM manipulation
function disableScript( elem ) {
var attr = elem.getAttributeNode("type");
elem.type = ( attr && attr.specified ) + "/" + elem.type;
elem.type = (elem.getAttribute("type") !== null) + "/" + elem.type;
return elem;
}
function restoreScript( elem ) {

0 comments on commit 3ef7a96

Please sign in to comment.