Work around for type attribute selector problem in WebKit on Mavericks