On Thu Jul 17 11:13:58 2025 +0000, Jacek Caban wrote:
`check_event_attr` is not exactly what we need here. It iterates over all attributes, so it would recreate and replace existing non-related event handlers. We'd probably want to factor out handling of a single attribute from it instead. You may get the name of the changed attribute from `nsIAtom` passed to `AttributeChanged` with `ScriptableToString` and the [attached](/uploads/4927195f5b520b7aceef83ab39a89d24/nsiatom.diff) `nsIAtom` declaration.
I understand what you mean, I should only handle the onclick attribute, but I cannot obtain the attribute name of nsIAtom. There is no export of the ScriptableToString function in xul.dll of wine-gecko 2.47.4.