From 63bb172663f9bf2deb4213312021d2914ab33edc Mon Sep 17 00:00:00 2001 From: Juriy Zaytsev Date: Wed, 25 Mar 2009 00:47:54 -0400 Subject: [PATCH] Fix erroneous `readAttribute` test. --- src/dom/dom.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dom/dom.js b/src/dom/dom.js index 19537b8..60804ba 100644 --- a/src/dom/dom.js +++ b/src/dom/dom.js @@ -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;