fixed DOM match selector to be cross-browser