I am working on Chrome extension allowing to get DOM elements attributes by clicking on it. But the extension does not work on some web-pages or for certain elements. E.g.:
Scenario 1: 1.1. Open Google page by entering google.com URL in address field. 1.2. Click on any element. 1.3. The script works as expected.
Scenario 2: 2.1 Open new browser tab. 2.2. New Google page is open (as it is default page) and its address string is blank. 2.3. Click on any element. 2.4. The script does not work, no alert popup appears
I suppose that the browser opens cached page by default, but anyway the script should work as DOM elements exist.
Also I have the same problem on another page where the script works for some elements and does not work for the auto generated elements located on this page. What is the reason of not working script?