diff options
author | Allan Sandfeld Jensen <allan.jensen@digia.com> | 2014-03-10 12:14:26 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-10 20:10:51 +0100 |
commit | 9e5c889f1e7531048114b540bb65dee81437ce6f (patch) | |
tree | 06dcdcfec3ae2a31d20a168b8fa7f93fa48eb95d /Source/WebKit/qt/WidgetApi/qwebframe.cpp | |
parent | 59b38d902d9eadc71509f1184d3753c525abea22 (diff) | |
download | qtwebkit-9e5c889f1e7531048114b540bb65dee81437ce6f.tar.gz |
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 <michael.bruning@digia.com>
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Diffstat (limited to 'Source/WebKit/qt/WidgetApi/qwebframe.cpp')
-rw-r--r-- | Source/WebKit/qt/WidgetApi/qwebframe.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
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() */ |