Event names containing the letter `.` are understood to be filters
NakajimaTakuya opened this issue · comments
from: #442 (comment)
Event names containing a dot, like jQuery's event namespace, are recognized as filter syntax.
For example.
https://getbootstrap.com/docs/4.2/components/modal/
https://api.jquery.com/event.namespace/
@NakajimaTakuya Thanks for opening this issue.
I feel like this issue won't just be limited to dots, as any number of libraries could use any convention to name their events, so the solution to this should be generalised.
@radiantshaw
Yes, there are other letters that can be misinterpreted when used.
The letter .
is used in the jQuery namespace and may have a significant impact.
So it might be a good idea to introduce escaping as you suggest.
I've been thinking about it a lot, and I think the jQuery namespace is causing the problem in most cases, so I'm trying to figure out if I can limit the syntax of this filter to keyup, keydown, and (keypress).