linterna-magica-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linterna-magica-commit] [84] Add support for with and height extraction


From: Ivaylo Valkov
Subject: [linterna-magica-commit] [84] Add support for with and height extraction from iframes.
Date: Sun, 12 Jun 2011 12:53:42 +0000

Revision: 84
          
http://svn.sv.gnu.org/viewvc/?view=rev&root=linterna-magica&revision=84
Author:   valkov
Date:     2011-06-12 12:53:42 +0000 (Sun, 12 Jun 2011)
Log Message:
-----------
Add support for with and height extraction from iframes.

Modified Paths:
--------------
    trunk/src/lm_extract_dom_objects.js

Modified: trunk/src/lm_extract_dom_objects.js
===================================================================
--- trunk/src/lm_extract_dom_objects.js 2011-06-11 09:37:17 UTC (rev 83)
+++ trunk/src/lm_extract_dom_objects.js 2011-06-12 12:53:42 UTC (rev 84)
@@ -258,8 +258,10 @@
 // Find the flash object width
 LinternaMagica.prototype.extract_object_width = function(element)
 {
-    if (!/HTML(embed|object)element/i.test(element))
+    if (!/HTML(embed|iframe|object)element/i.test(element))
+    {
        return null;
+    }
     // Bug see comments in is_swf_object
     // if (typeof(element) !== "object")
     //         return null;
@@ -300,8 +302,11 @@
 // Find the flash object height
 LinternaMagica.prototype.extract_object_height = function(element)
 {
-    if (!/HTML(embed|object)element/i.test(element))
+    if (!/HTML(embed|iframe|object)element/i.test(element))
+    {
        return null;
+    }
+
     // Bug see comments in is_swf_object
     // if (typeof(element) !== "object")
     //         return null;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]