On Thu Jul 17 15:33:57 2025 +0000, Jacek Caban wrote:
The following jscript code was executed during the installation of Photoshop 2025:
$("#continueButton").attr("onclick", "continueBtnClicked('installOptionsContinueClicked'); return false;");
I'm guessing that ends up calling `Element.setAttribute()`. For legacy (pre-IE9) modes we support that by intercepting `setAttribute` and friends themself. Theoretically we could do that for IE9+ too, but I like your solution more, as it's more flexible. CC @insn. Please add a test case to `events.js`.
I'm not sure what happens with elements not part of the DOM tree, they might not call `AttributeChanged`. If that's true and we go this route, we might need to intercept them being added to the document to parse their attributes there.
Can you please test/add tests for detached elements (not inserted into DOM tree) as well and see what happens? @yaoyongjie