From 38f4f184428a3a0d04eee09b9d63ccf54037aa50 Mon Sep 17 00:00:00 2001 From: Arian Date: Fri, 5 Aug 2011 13:34:09 +0100 Subject: [PATCH] Add test for getAttributeNode().nodeValue of cloned elements which fails in IE6 & IE7 --- detect/bugs.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/detect/bugs.js b/detect/bugs.js index b154d90..8451771 100644 --- a/detect/bugs.js +++ b/detect/bugs.js @@ -419,5 +419,12 @@ return buggy; }); + // true on IE6 and IE7 + addtest("bug-cloned-getattributenode-nodevalue", function(g, d, el){ + var clone = el.cloneNode(false); + clone.setAttribute('class', 'test'); + return clone.getAttributeNode('class').nodeValue != 'test'; + }); + })(has, has.add, has.cssprop);