[epiphany] Inspect type property when hooking to login forms



commit 34225b960b566b75a401a7e279978da8090d75db
Author: Diego Escalante Urrelo <descalante igalia com>
Date:   Sun Mar 7 19:28:37 2010 -0500

    Inspect type property when hooking to login forms
    
    Some sites don't use a sane type attribute in their input tags. So for example
    you get input tags without a type, or with multiple types. Offenders are
    bugzillas and ohloh.net.
    Luckily, WebKit inferres correctly what the input should be so instead of
    relying on what the HTML says we rely on what WebKit thinks.
    
    Bug #608740

 embed/ephy-web-view.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 398db35..cbb70c9 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -799,7 +799,8 @@ find_username_and_password_elements (JSContextRef js_context,
 
     js_object = JSValueToObject (js_context, (JSValueRef)iter->data, NULL);
 
-    type = js_get_element_attribute (js_context, js_object, "type");
+    type = js_get_element_property (js_context, js_object, "type");
+
     if (!type)
       continue;
 



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