Bug 32865

Summary: [Qt] QWebElement::attribute always returns empty result for input's values
Product: WebKit Reporter: Andy Nichols <andy.nichols>
Component: WebKit QtAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Major CC: benjamin, cmarcelo, douaberi, hausmann, kent.hansen, max.hong.shen, mikelupow, robert, tonikitoo, webkit.review.bot, wolfram
Priority: P2 Keywords: Qt, QtTriaged
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Example to demonstrat problem
none
Patch
ariya.hidayat: review-
attribute/setAttribute patch to be compatible with html inputs' values
benjamin: review-
New patch, with "checked" attribute support
none
style fixed
none
warning fixed
tonikitoo: review-, tonikitoo: commit-queue-
changelog and tests added
none
changelog and tests added
none
changelog and tests added, style fixed
wolfram: review-, wolfram: commit-queue-
changelog and tests added, style fixed, typo fixed
none
Short comment added
none
fix
none
I'm awfully sorry for all these junk files
benjamin: review-
Patch refined according to last comment
none
Style fixed
none
Style fixed hausmann: review-, hausmann: commit-queue-

Andy Nichols
Reported 2009-12-22 03:45:53 PST
Created attachment 45380 [details] Example to demonstrat problem How to reproduce the bug: 1) Create simple application with QWebView and button. Add slot for button click event with code like the following: void onTestClick() { QWebFrame* curFrame = m_webview->page()->currentFrame(); if (curFrame) { QWebElement elem = curFrame->documentElement().findFirst("#login"); if (!elem.isNull()) { QString ret = elem.attribute("value", "nothing :("); QMessageBox::information(0, "Result", ret, QMessageBox::Ok); } } } 2) Load any web page which contains <input> element with attribute "id" defined (for example <input id="login" name="login"/>) 3) Enter any text to this field and press button. Messagebox will be shown but displayed text always will be "nothing :(" Note that if you inject JQuery to the page in slot connected to loadFinished() signal and place the following code to onTestClick(): QString ret = m_webview->evaluateJavaScript("$('#login').attr('value')").toString(); QMessageBox::information(0, "Result", ret, QMessageBox::Ok); value will be extracted correctly.
Attachments
Example to demonstrat problem (2.81 KB, application/zip)
2009-12-22 03:45 PST, Andy Nichols
no flags
Patch (7.36 KB, patch)
2010-10-31 05:28 PDT, Robert Hogan
ariya.hidayat: review-
attribute/setAttribute patch to be compatible with html inputs' values (1.16 KB, patch)
2011-04-14 21:15 PDT, wolfy
benjamin: review-
New patch, with "checked" attribute support (2.20 KB, patch)
2011-04-25 01:09 PDT, wolfy
no flags
style fixed (2.17 KB, patch)
2011-04-25 01:56 PDT, wolfy
no flags
warning fixed (2.22 KB, patch)
2011-04-25 02:16 PDT, wolfy
tonikitoo: review-
tonikitoo: commit-queue-
changelog and tests added (2.22 KB, text/plain)
2011-04-27 00:18 PDT, wolfy
no flags
changelog and tests added (5.80 KB, patch)
2011-04-27 00:37 PDT, wolfy
no flags
changelog and tests added, style fixed (5.87 KB, patch)
2011-04-27 00:51 PDT, wolfy
wolfram: review-
wolfram: commit-queue-
changelog and tests added, style fixed, typo fixed (5.87 KB, patch)
2011-04-27 01:00 PDT, wolfy
no flags
Short comment added (5.91 KB, patch)
2011-04-28 20:30 PDT, wolfy
no flags
fix (2.40 KB, text/plain)
2011-04-28 22:25 PDT, wolfy
no flags
I'm awfully sorry for all these junk files (5.91 KB, patch)
2011-04-28 23:47 PDT, wolfy
benjamin: review-
Patch refined according to last comment (5.91 KB, patch)
2011-05-23 23:09 PDT, wolfy
no flags
Style fixed (5.92 KB, patch)
2011-05-23 23:51 PDT, wolfy
no flags
Style fixed (5.91 KB, patch)
2011-05-24 00:25 PDT, wolfy
hausmann: review-
hausmann: commit-queue-
Tor Arne Vestbø
Comment 1 2010-03-10 06:27:57 PST
Please follow the QtWebKit bug reporting guidelines when reporting bugs. See http://trac.webkit.org/wiki/QtWebKitBugs Specifically: - The 'QtWebKit' component should only be used for bugs/features in the public QtWebKit API layer, not to signify that the bug is specific to the Qt port of WebKit http://trac.webkit.org/wiki/QtWebKitBugs#Component - Add the keyword 'Qt' to signal that it's a Qt-related bug http://trac.webkit.org/wiki/QtWebKitBugs#Keywords
Kent Hansen
Comment 2 2010-03-11 05:07:04 PST
Reproduced against r55658. On the initial click, hasAttribute("value") returns false, and attributeNames() returns only "id" and "name". setAttribute("value", ...) does cause the element to gain a "value" attribute, but it seems to be completely detached from the value of the input field.
Yi Shen
Comment 3 2010-09-13 12:18:02 PDT
That is because some HTMLInputElement (e.g. text input element) stores its value separately from element's attribute map, which means each value has two copies. For QWebElement, it only can access the values in the element's attribute map. Not sure whether it is a qtwebkit bug or "features" for security reasons. (In reply to comment #2) > Reproduced against r55658. > On the initial click, hasAttribute("value") returns false, and attributeNames() returns only "id" and "name". > setAttribute("value", ...) does cause the element to gain a "value" attribute, but it seems to be completely detached from the value of the input field.
Robert Hogan
Comment 4 2010-10-31 05:03:08 PDT
(In reply to comment #3) > That is because some HTMLInputElement (e.g. text input element) stores its value separately from element's attribute map, which means each value has two copies. > > For QWebElement, it only can access the values in the element's attribute map. > > Not sure whether it is a qtwebkit bug or "features" for security reasons. I think there is method in the madness and that QWebElement just needs extra API specifically for the current value in an input element. We don't want to modify the behaviour of attribute() because we might still want access to the initial value defined by the page.
Robert Hogan
Comment 5 2010-10-31 05:28:23 PDT
Kenneth Rohde Christiansen
Comment 6 2010-10-31 05:58:05 PDT
Comment on attachment 72454 [details] Patch Isn't currentValue something like computeValue?
Robert Hogan
Comment 7 2010-10-31 06:29:39 PDT
(In reply to comment #6) > (From update of attachment 72454 [details]) > Isn't currentValue something like computeValue? Don't think so. AFAICT it's: String HTMLInputElement::value() const
Ariya Hidayat
Comment 8 2010-12-31 08:09:40 PST
Comment on attachment 72454 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=72454&action=review r- for minor issue, otherwise LGTM. In all cases, needs to be coordinated with Oslo as this involves API addition. > WebKit/qt/Api/qwebelement.cpp:400 > +QString QWebElement::currentValue() const New API function: require \since tag.
Benjamin Poulain
Comment 9 2011-01-28 19:07:36 PST
*** Bug 48230 has been marked as a duplicate of this bug. ***
Benjamin Poulain
Comment 10 2011-01-28 19:12:18 PST
*** Bug 53319 has been marked as a duplicate of this bug. ***
Benjamin Poulain
Comment 11 2011-01-28 19:13:21 PST
I would actually change ::attribute() and ::setAttribute() to work on the input value and not the original value. Doing otherwise would give unexpected result from what one would expect. See #53319 for example.
wolfy
Comment 12 2011-04-14 21:15:58 PDT
Created attachment 89729 [details] attribute/setAttribute patch to be compatible with html inputs' values
WebKit Review Bot
Comment 13 2011-04-14 21:18:20 PDT
Attachment 89729 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files']" exit_code: 1 Total errors found: 0 in 0 files If any of these errors are false positives, please file a bug against check-webkit-style.
Benjamin Poulain
Comment 14 2011-04-15 05:35:26 PDT
Comment on attachment 89729 [details] attribute/setAttribute patch to be compatible with html inputs' values View in context: https://bugs.webkit.org/attachment.cgi?id=89729&action=review R-: Missing changelog, and missing tests. The idea look sane though, is value the only attribute behaving like that? > B/qwebelement.cpp:127 > + Empty line?
wolfy
Comment 15 2011-04-17 21:05:14 PDT
> R-: Missing changelog, How to add it? > and missing tests. I think that no new tests are required but existing (WebKit/qt/tests/qwebelement/tst_qwebelement.cpp) will work fine. > The idea look sane though, is value the only attribute behaving like that? Yes, only values of html inputs are broken > Empty line? Just a typo.
Antonio Gomes
Comment 16 2011-04-17 21:51:17 PDT
(In reply to comment #15) > > R-: Missing changelog, > How to add it? Tools/Scripts/prepare-ChangeLog --bug XXX --git-commit=SHA
wolfy
Comment 17 2011-04-25 01:09:14 PDT
Created attachment 90906 [details] New patch, with "checked" attribute support
WebKit Review Bot
Comment 18 2011-04-25 01:10:06 PDT
Comment on attachment 90906 [details] New patch, with "checked" attribute support Rejecting attachment 90906 [details] from review queue. wolfram@ritsuka.org does not have reviewer permissions according to http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/common/config/committers.py. - If you do not have reviewer rights please read http://webkit.org/coding/contributing.html for instructions on how to use bugzilla flags. - If you have reviewer rights please correct the error in Tools/Scripts/webkitpy/common/config/committers.py by adding yourself to the file (no review needed). The commit-queue restarts itself every 2 hours. After restart the commit-queue will correctly respect your reviewer rights.
WebKit Review Bot
Comment 19 2011-04-25 01:11:54 PDT
Comment on attachment 90906 [details] New patch, with "checked" attribute support Rejecting attachment 90906 [details] from commit-queue. wolfram@ritsuka.org does not have committer permissions according to http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/common/config/committers.py. - If you do not have committer rights please read http://webkit.org/coding/contributing.html for instructions on how to use bugzilla flags. - If you have committer rights please correct the error in Tools/Scripts/webkitpy/common/config/committers.py by adding yourself to the file (no review needed). The commit-queue restarts itself every 2 hours. After restart the commit-queue will correctly respect your committer rights.
WebKit Review Bot
Comment 20 2011-04-25 01:29:53 PDT
Attachment 90906 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebKit/qt/Api/qwebelement.cpp', u'S..." exit_code: 1 Source/WebKit/qt/Api/qwebelement.cpp:386: This { should be at the end of the previous line [whitespace/braces] [4] Source/WebKit/qt/Api/qwebelement.cpp:391: This { should be at the end of the previous line [whitespace/braces] [4] Source/WebKit/qt/Api/qwebelement.cpp:392: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5] Source/WebKit/qt/Api/qwebelement.cpp:425: This { should be at the end of the previous line [whitespace/braces] [4] Total errors found: 4 in 2 files If any of these errors are false positives, please file a bug against check-webkit-style.
Early Warning System Bot
Comment 21 2011-04-25 01:42:11 PDT
wolfy
Comment 22 2011-04-25 01:56:34 PDT
Created attachment 90907 [details] style fixed
Early Warning System Bot
Comment 23 2011-04-25 02:04:18 PDT
wolfy
Comment 24 2011-04-25 02:16:03 PDT
Created attachment 90908 [details] warning fixed
Antonio Gomes
Comment 25 2011-04-25 09:07:58 PDT
Comment on attachment 90908 [details] warning fixed View in context: https://bugs.webkit.org/attachment.cgi?id=90908&action=review I think we need tests, or if there are existing ones, please say it in the ChangeLog entry. > Source/WebKit/qt/ChangeLog:1 > +2011-04-25 <> Fix it, please
wolfy
Comment 26 2011-04-27 00:18:43 PDT
Created attachment 91244 [details] changelog and tests added
wolfy
Comment 27 2011-04-27 00:36:46 PDT
Comment on attachment 91244 [details] changelog and tests added Sorry, wrong file
wolfy
Comment 28 2011-04-27 00:37:46 PDT
Created attachment 91245 [details] changelog and tests added
WebKit Review Bot
Comment 29 2011-04-27 00:40:34 PDT
Attachment 91245 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebKit/qt/Api/qwebelement.cpp', u'S..." exit_code: 1 Last 3072 characters of output: ce indent? [whitespace/indent] [3] Source/WebKit/qt/tests/qwebelement/tst_qwebelement.cpp:1063: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebKit/qt/tests/qwebelement/tst_qwebelement.cpp:1064: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebKit/qt/tests/qwebelement/tst_qwebelement.cpp:1065: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebKit/qt/tests/qwebelement/tst_qwebelement.cpp:1066: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebKit/qt/tests/qwebelement/tst_qwebelement.cpp:1067: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebKit/qt/tests/qwebelement/tst_qwebelement.cpp:1068: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebKit/qt/tests/qwebelement/tst_qwebelement.cpp:1071: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebKit/qt/tests/qwebelement/tst_qwebelement.cpp:1072: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebKit/qt/tests/qwebelement/tst_qwebelement.cpp:1073: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebKit/qt/tests/qwebelement/tst_qwebelement.cpp:1074: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebKit/qt/tests/qwebelement/tst_qwebelement.cpp:1075: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebKit/qt/tests/qwebelement/tst_qwebelement.cpp:1076: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebKit/qt/tests/qwebelement/tst_qwebelement.cpp:1077: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebKit/qt/tests/qwebelement/tst_qwebelement.cpp:1078: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebKit/qt/tests/qwebelement/tst_qwebelement.cpp:1079: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebKit/qt/tests/qwebelement/tst_qwebelement.cpp:1080: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebKit/qt/tests/qwebelement/tst_qwebelement.cpp:1081: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebKit/qt/tests/qwebelement/tst_qwebelement.cpp:1082: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebKit/qt/tests/qwebelement/tst_qwebelement.cpp:1083: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Total errors found: 35 in 3 files If any of these errors are false positives, please file a bug against check-webkit-style.
wolfy
Comment 30 2011-04-27 00:51:09 PDT
Created attachment 91251 [details] changelog and tests added, style fixed
Early Warning System Bot
Comment 31 2011-04-27 00:52:03 PDT
wolfy
Comment 32 2011-04-27 01:00:32 PDT
Created attachment 91252 [details] changelog and tests added, style fixed, typo fixed
Antonio Gomes
Comment 33 2011-04-28 19:29:34 PDT
Comment on attachment 91252 [details] changelog and tests added, style fixed, typo fixed View in context: https://bugs.webkit.org/attachment.cgi?id=91252&action=review Still one minor request: > Source/WebKit/qt/Api/qwebelement.cpp:391 > + htmlElement->setChecked(checked, true); Please make this line like: htmlElement->setChecked(checked, true /*explain shortly here, maybe in one or two words, what this boolean means*/);
wolfy
Comment 34 2011-04-28 20:30:14 PDT
Created attachment 91626 [details] Short comment added
Early Warning System Bot
Comment 35 2011-04-28 20:40:41 PDT
wolfy
Comment 36 2011-04-28 22:25:47 PDT
wolfy
Comment 37 2011-04-28 23:47:04 PDT
Created attachment 91644 [details] I'm awfully sorry for all these junk files
wolfy
Comment 38 2011-05-22 06:42:30 PDT
I'm awfully sorry, but... any news?
Benjamin Poulain
Comment 39 2011-05-22 07:13:41 PDT
Comment on attachment 91644 [details] I'm awfully sorry for all these junk files View in context: https://bugs.webkit.org/attachment.cgi?id=91644&action=review > Source/WebKit/qt/Api/qwebelement.cpp:392 > + HTMLInputElement* htmlElement = static_cast<HTMLInputElement*>(m_element); > + if (HTMLNames::valueAttr == name) > + htmlElement->setValue(value, true /* sendChangeEvent */); > + else if (HTMLNames::checkedAttr == name) { > + bool checked = !QString::compare(value, QString::fromLatin1("checked"), Qt::CaseInsensitive); > + htmlElement->setChecked(checked, true /* sendChangeEvent */); > + } Invalid indentation. > Source/WebKit/qt/Api/qwebelement.cpp:428 > + if (m_element->hasTagName(HTMLNames::inputTag)) { > + HTMLInputElement* htmlElement = static_cast<HTMLInputElement*>(m_element); > + if (HTMLNames::valueAttr == name) > + return htmlElement->value(); > + else if (HTMLNames::checkedAttr == name) > + return htmlElement->checked() ? QString::fromLatin1("checked") : QString(); > + } This is not indented correctly. > Source/WebKit/qt/ChangeLog:1 > +2011-04-29 wolfy <wolfram@ritsuka.org> You should probably put your name in here. > Source/WebKit/qt/ChangeLog:15 > + [Qt] QWebElement::attribute always returns empty result for input's values > + https://bugs.webkit.org/show_bug.cgi?id=32865 This, the title and url, usually goes above the description, not after. > Source/WebKit/qt/tests/qwebelement/tst_qwebelement.cpp:1045 > + // No initial value You should have a period at the end of sentences. (This one and the other comments). > Source/WebKit/qt/tests/qwebelement/tst_qwebelement.cpp:1049 > + QCOMPARE(inputElement.attribute("value"), QString()); I would think the correct value for inputElement.attribute("value") is empty but not null. While a null string would be if there is no value attribute. > Source/WebKit/qt/tests/qwebelement/tst_qwebelement.cpp:1076 > + QCOMPARE(inputElement.attribute("value"), QString("")); Kind of reverse from the comment for the text, I would expect value to be null in this case, not empty.
Benjamin Poulain
Comment 40 2011-05-22 07:19:05 PDT
(In reply to comment #38) > I'm awfully sorry, but... any news? It happens a patch is ignored, especially when it had lots of update for no good reason. A good way out of the problem is to poke reviewers on IRC. Please come on #qtwebkit (and/or #webkit), and if you see your patch is not going forward, ask the reviewers for advices on how to improve the patch. I am not sure your patch is correct yet, because the solution is maybe to change Element::value(). Other than that, the code and test looks sane. Just a few more iterations to get it to be perfect.
wolfy
Comment 41 2011-05-23 23:09:21 PDT
Created attachment 94570 [details] Patch refined according to last comment (In reply to comment #39) > Invalid indentation. Fixed. > This is not indented correctly. Fixed. > > Source/WebKit/qt/ChangeLog:1 > > +2011-04-29 wolfy <wolfram@ritsuka.org> > > You should probably put your name in here. I don't want to do that. > This, the title and url, usually goes above the description, not after. Fixed. > > Source/WebKit/qt/tests/qwebelement/tst_qwebelement.cpp:1045 > > + // No initial value > > You should have a period at the end of sentences. (This one and the other comments). Fixed. But I didn't see periods in any other comments in this file. > I would think the correct value for inputElement.attribute("value") is empty but not null. > While a null string would be if there is no value attribute. > > Kind of reverse from the comment for the text, I would expect value to be null in this case, not empty. Fixed.
WebKit Review Bot
Comment 42 2011-05-23 23:11:15 PDT
Attachment 94570 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebKit/qt/Api/qwebelement.cpp', u'S..." exit_code: 1 Source/WebKit/qt/Api/qwebelement.cpp:425: An else if statement should be written as an if statement when the prior "if" concludes with a return, break, continue or goto statement. [readability/control_flow] [4] Total errors found: 1 in 3 files If any of these errors are false positives, please file a bug against check-webkit-style.
wolfy
Comment 43 2011-05-23 23:51:12 PDT
Created attachment 94576 [details] Style fixed
WebKit Review Bot
Comment 44 2011-05-23 23:53:41 PDT
Attachment 94576 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebKit/qt/Api/qwebelement.cpp', u'S..." exit_code: 1 Source/WebKit/qt/Api/qwebelement.cpp:425: An else if statement should be written as an if statement when the prior "if" concludes with a return, break, continue or goto statement. [readability/control_flow] [4] Source/WebKit/qt/Api/qwebelement.cpp:429: One line control clauses should not use braces. [whitespace/braces] [4] Total errors found: 2 in 3 files If any of these errors are false positives, please file a bug against check-webkit-style.
wolfy
Comment 45 2011-05-24 00:25:48 PDT
Created attachment 94578 [details] Style fixed
Simon Hausmann
Comment 46 2011-05-25 18:15:25 PDT
(In reply to comment #11) > I would actually change ::attribute() and ::setAttribute() to work on the input value and not the original value. > > Doing otherwise would give unexpected result from what one would expect. See #53319 for example. Ok, so we have to distinguish between HTML attributes and DOM property attributes ( http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-642250288 ) The current implementation of setAttribute() and attribute() corresponds to HTML attributes, and the namespace "overloads" of these functions stress this. So the current behaviour is very well defined and I don't think we can change it without breaking the *NS() overloads or introducing inconsistencies. Consequently I think what we need here are functions to change the DOM property attributes. The most logical way I think to implement this would be to add this when we change to V8 and introduce QtScript as dependency in the API. Then we can have property setters/getters that correspond to properties in JavaScript, which are a 1:1 mapping to DOM property attributes.
Simon Hausmann
Comment 47 2011-05-25 18:18:26 PDT
Comment on attachment 94578 [details] Style fixed I'm going to say r- because of the previous comment in the sense that this makes setAttribute() inconsistent to setAttributeNS() (and the same for the getters). Unless someone comes up with a nicer proposal I'd suggest we solve this when we introduce the QtScript dependency. Then we can have for example QScriptValue QWebElement::scriptObject() and you can do element.setAttribute("value", "this is the initial value"); QScriptValue jsobject = element.scriptObject(); jsobject.setProperty("value", "current text");
wolfy
Comment 48 2011-05-25 20:41:54 PDT
Ok, it's very interesting idea, but... could you give us any quick advice which will allow to work with html inputs? They are mostly unusable now.
Simon Hausmann
Comment 49 2011-05-25 22:38:03 PDT
(In reply to comment #48) > Ok, it's very interesting idea, but... could you give us any quick advice which will allow to work with html inputs? They are mostly unusable now. If you're just looking for a workaround, here's what you could try today (untested): QString value = element->evaluateJavaScript("this.value"); ... element->evaluateJavaScript("this.value = " + newValue);
wolfy
Comment 50 2011-05-26 01:50:31 PDT
It's not a solution for me. JS calls are very slow, so I'll continue to use my patch. Could you make some approximations about times when fix proposed by you will be done?
Jocelyn Turcotte
Comment 51 2014-02-03 03:16:05 PST
=== Bulk closing of Qt bugs === If you believe that this bug report is still relevant for a non-Qt port of webkit.org, please re-open it and remove [Qt] from the summary. If you believe that this is still an important QtWebKit bug, please fill a new report at https://bugreports.qt-project.org and add a link to this issue. See http://qt-project.org/wiki/ReportingBugsInQt for additional guidelines.
Note You need to log in before you can comment on or make changes to this bug.