diff --git a/src/core/ReactID.js b/src/core/ReactID.js index f658241146..d3a6cfad2b 100644 --- a/src/core/ReactID.js +++ b/src/core/ReactID.js @@ -57,13 +57,7 @@ function getID(node) { } function internalGetID(node) { - if (node && node.getAttributeNode) { - var attributeNode = node.getAttributeNode(ATTR_NAME); - if (attributeNode) { - return attributeNode.value || ''; - } - } - return ''; + return node && node.getAttribute && node.getAttribute(ATTR_NAME) || ''; } /**