javascript - DOMAttrModified event listener is not firing in Android WebView -


i have worked on injecting scripts third party mobile website. using user agent switcher plugin firefox inspect elements of mobile website in desktop environment.

in firefox have tested domattrmodified event using break on attribute change particular dom element, in android webview event not fired.

element.addeventlistener('domattrmodified', function (ev) {   // ... }, false); 

i don't know why not working in android webview.

function isdomattrmodifiedsupported() { var p, flag;  flag = false; p = document.createelement('p'); if (p.addeventlistener) {     p.addeventlistener('domattrmodified', callback, false); } else if (p.attachevent) {     p.attachevent('ondomattrmodified', callback); } else {     // assume not     return false; } p.setattribute('id', 'target'); return flag;  function callback() {     flag = true; } 

}

check code.


Comments

Popular posts from this blog

python - Installing PyDev in eclipse is failed -

PHP OOP-based login system -

c# - Nested Internal Class with Readonly Hashtable throws Null ref exception.. on assignment -