diff options
author | artoka <arto.katajasalo@digia.com> | 2011-11-01 12:47:19 (GMT) |
---|---|---|
committer | Casper van Donderen <casper.vandonderen@nokia.com> | 2011-11-01 13:11:00 (GMT) |
commit | b6fe7690e2b7eada35d9240f260bfb5bfb20b585 (patch) | |
tree | e190e14d526b8eca13393ee8621dccd641d16552 /src | |
parent | 473f65b678d5ea6ff342e169ceb63fab7790b090 (diff) | |
download | Qt-b6fe7690e2b7eada35d9240f260bfb5bfb20b585.zip Qt-b6fe7690e2b7eada35d9240f260bfb5bfb20b585.tar.gz Qt-b6fe7690e2b7eada35d9240f260bfb5bfb20b585.tar.bz2 |
QWebElement example missed information
In the example there was told to use
button.evaluateJavaScript("click()"); which doesn't work.
Instead of "click()" it should be "this.click()".
Changed to "this.click()".
Task-number: QTBUG-17029
Merge-request: 2698
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/3rdparty/webkit/Source/WebKit/qt/docs/webkitsnippets/webelement/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/3rdparty/webkit/Source/WebKit/qt/docs/webkitsnippets/webelement/main.cpp b/src/3rdparty/webkit/Source/WebKit/qt/docs/webkitsnippets/webelement/main.cpp index b1781a6..59c124c 100644 --- a/src/3rdparty/webkit/Source/WebKit/qt/docs/webkitsnippets/webelement/main.cpp +++ b/src/3rdparty/webkit/Source/WebKit/qt/docs/webkitsnippets/webelement/main.cpp @@ -57,7 +57,7 @@ static void findButtonAndClick() */ QWebElement button = document.findFirst("input[type=submit]"); - button.evaluateJavaScript("click()"); + button.evaluateJavaScript("this.click()"); //! [Calling a DOM element method] |