From 9e5c889f1e7531048114b540bb65dee81437ce6f Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Mon, 10 Mar 2014 12:14:26 +0100 Subject: Fix documentation of the selector API We support all CSS selectors WebKit supports since the methods map internally to the DOM Selectors API. We should therefore update the documentation to claim more than CSS2 selector support. Task-number: QTBUG-37208 Change-Id: I4eae7c897f13bbb17221995ef764020d9341d1f8 Reviewed-by: Michael Bruning Reviewed-by: Jerome Pasion --- Source/WebKit/qt/WidgetApi/qwebframe.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Source/WebKit/qt/WidgetApi/qwebframe.cpp') diff --git a/Source/WebKit/qt/WidgetApi/qwebframe.cpp b/Source/WebKit/qt/WidgetApi/qwebframe.cpp index 27cc73989..eb7821d53 100644 --- a/Source/WebKit/qt/WidgetApi/qwebframe.cpp +++ b/Source/WebKit/qt/WidgetApi/qwebframe.cpp @@ -768,9 +768,11 @@ QWebElement QWebFrame::documentElement() const Returns a new list of elements matching the given CSS selector \a selectorQuery. If there are no matching elements, an empty list is returned. - \l{http://www.w3.org/TR/REC-CSS2/selector.html#q1}{Standard CSS2 selector} syntax is + \l{Standard CSS selector} syntax is used for the query. + This method is equivalent to Document::querySelectorAll in the \l{DOM Selectors API}. + \sa QWebElement::findAll() */ QWebElementCollection QWebFrame::findAllElements(const QString &selectorQuery) const @@ -784,8 +786,9 @@ QWebElementCollection QWebFrame::findAllElements(const QString &selectorQuery) c given CSS selector \a selectorQuery. If there is no matching element, a null element is returned. - \l{http://www.w3.org/TR/REC-CSS2/selector.html#q1}{Standard CSS2 selector} syntax is - used for the query. + \l{Standard CSS selector} syntax is used for the query. + + This method is equivalent to Document::querySelector in the \l{DOM Selectors API}. \sa QWebElement::findFirst() */ -- cgit v1.2.1