-
weinig@apple.com authored
2008-07-07 Sam Weinig <sam@webkit.org> Reviewed by Geoffrey Garen. Fix for https://bugs.webkit.org/show_bug.cgi?id=19928 querySelectorAll should throw an exception if a NSResolver is passed in. - Throw an NOT_SUPPORTED_ERR if a non-null or undefined parameter is passed as the second argument to querySelector or querySelectorAll. Test: fast/dom/SelectorAPI/not-supported-NSResolver.html * bindings/js/JSDocumentCustom.cpp: (WebCore::JSDocument::querySelector): (WebCore::JSDocument::querySelectorAll): * bindings/js/JSElementCustom.cpp: (WebCore::JSElement::querySelector): (WebCore::JSElement::querySelectorAll): * dom/Document.idl: * dom/Element.idl: LayoutTests: 2008-07-07 Sam Weinig <sam@webkit.org> Reviewed by Geoffrey Garen. Fix for https://bugs.webkit.org/show_bug.cgi?id=19928 querySelectorAll should throw an exception if a NSResolver is passed in. * fast/dom/SelectorAPI/not-supported-NSResolver-expected.txt: Added. * fast/dom/SelectorAPI/not-supported-NSResolver.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@35041 268f45cc-cd09-0410-ab3c-d52691b4dbfc
4c74be06