Yeah, changing the parameter name from "target" to "targetSelector" or
"cssSelector" sounds good.
The behavior is something that changed a year or two ago,
querySelector being a more flexible way to identify a target element.
It used to denote an element ID. There was a deprecation period, an
option to flip between the two conventions, etc. and at some point the
migration was completed. You can still get to the old behavior with
Emscripten linker flag -s
DISABLE_DEPRECATED_FIND_EVENT_TARGET_BEHAVIOR=0.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/emscripten-discuss/CAFnWYTn4UKFwHgYVJQ3jFc%2B7kZCkmS2GCyfUzfYjuRVHDm6doA%40mail.gmail.com.