Fix erroneous readAttribute test.

This commit is contained in:
Juriy Zaytsev 2009-03-25 00:47:54 -04:00
parent b35ebeb135
commit 63bb172663

View File

@ -610,9 +610,10 @@ Element.Methods = {
})();
// Opera 9.25 returns `null` instead of "" for getAttribute('title')
// when `title` attribute is not present
// when `title` attribute is empty
var GET_ATTRIBUTE_TITLE_RETURNS_NULL = (function(){
var el = document.createElement('div');
el.title = '';
var isBuggy = (el.getAttribute('title') === null);
el = null;
return isBuggy;