Comment Comment by simonw Probably this JavaScript function I posted on my blog in 2003 https://simonwillison.net/2003/Mar/25/getElementsBySelector/ parent simonw 4 years ago