[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linterna-magica-commit] [113] Accessing the id of the element with DOM
From: |
Ivaylo Valkov |
Subject: |
[linterna-magica-commit] [113] Accessing the id of the element with DOM functions returns true values. |
Date: |
Wed, 06 Jul 2011 08:41:28 +0000 |
Revision: 113
http://svn.sv.gnu.org/viewvc/?view=rev&root=linterna-magica&revision=113
Author: valkov
Date: 2011-07-06 08:41:26 +0000 (Wed, 06 Jul 2011)
Log Message:
-----------
Accessing the id of the element with DOM functions returns true values. Used to
return 'hello World' instead of id.
Modified Paths:
--------------
trunk/src/lm_detect_flash.js
Modified: trunk/src/lm_detect_flash.js
===================================================================
--- trunk/src/lm_detect_flash.js 2011-07-05 15:21:46 UTC (rev 112)
+++ trunk/src/lm_detect_flash.js 2011-07-06 08:41:26 UTC (rev 113)
@@ -131,7 +131,8 @@
this.log("LinternaMagica.is_swf_object:\n"+
"SWF <"+element.localName+"> "+
- (element.id ? (" id: \""+element.id+"\" " ) :"") +
+ (element.hasAttribute("id") ?
+ (" with id \""+element.getAttribute("id")+"\" " ) :"") +
"detected via \""+detected_via+"\".", 2);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [linterna-magica-commit] [113] Accessing the id of the element with DOM functions returns true values.,
Ivaylo Valkov <=