dy / spect

Observable selectors in DOM
https://dy.github.io/spect
MIT License
77 stars 8 forks source link

$: pseudos? #235

Closed dy closed 3 years ago

dy commented 4 years ago

To make fully behavioral $, it needs pseudos support. https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-classes

$('#submit:active', el => {
  // submit button clicked
})

It's not enough to observe attributes, that's something handled by... animevents?

dy commented 3 years ago

There's no way from JS to get handle of all possible pseudos, like before/after.