Category "dom"

How to catch a "load" event on STYLE tag with IE?

Let's say I have the following code: var style = $("<style/>") .html("body{background:grey; color:white;} /*and more CSS style*/") .on("load", fun

element.getBoundingClientRect is not a function

Why does it said that element.getBoundingClientRect is not a function? I really don't know what to do. Here is my JS: const elementsFadeIn = document.querySele

Internet Explorer leaks click event after adding an overlay in a jQuery mousedown handler

In a mousedown event-handler of a div another new div is created and appended to the body. This new div has position:fixed (can also be position:absolute) and h

How to resolve the C:\fakepath?

<input type="file" id="file-id" name="file_name" onchange="theimage();"> This is my upload button. <input type="text" name="file_path" id="file-path

Assert if there exist a td DOM with a specific text in testcafe

I just started using testcafe, so far I found the documentation helpful to do my test and automate my E2E. I want to assert if a value exists in a td like this

Catching any click performed using jQuery

The noob way to do it I guess would be $('*').click(function(){...}); But is there any way I can catch any type of click, without having to register a listener

Find an element in DOM based on an attribute value

Can you please tell me if there is any DOM API which search for an element with given attribute name and attribute value: Something like: doc.findElementByAtt

Find an element in DOM based on an attribute value

Can you please tell me if there is any DOM API which search for an element with given attribute name and attribute value: Something like: doc.findElementByAtt

Find an element in DOM based on an attribute value

Can you please tell me if there is any DOM API which search for an element with given attribute name and attribute value: Something like: doc.findElementByAtt

Find an element in DOM based on an attribute value

Can you please tell me if there is any DOM API which search for an element with given attribute name and attribute value: Something like: doc.findElementByAtt