Datasette, Django, and Lanyrd.
> Locating elements by their class name is a widespread technique popularized by Simon Willison (http://simon.incutio.com) in 2003 and originally written by Andrew Hayward (http://www.mooncalf.me.uk)
[0] Page 91 from "Pro JavaScript Techniques" by John Resig.
/* That revolting regular expression explained
/^(\w+)\[(\w+)([=~\|\^\$\*]?)=?"?([^\]"]*)"?\]$/
\---/ \---/\-------------/ \-------/
| | | |
| | | The value
| | ~,|,^,$,* or =
| Attribute
Tag
*/
all regexes should have ascii art explainers!(from https://static.simonwillison.net/static/2003/getElementsBySe...)
querySelectorAll wouldn't ever appear without jQuery which got its idea from Simon's idea.
And even then querySelectorAll was so poorly implemented that it didn't even have any useful helper methods.
Then thinking, I suppose you could do it by (exactly the method you used), but never actually doing it because if it were that simple, someone would have already done it.
Actually, seeing the date, I realize this predates me even leaving high-school, which makes it even more atrocious that I never knew of it!