[Webkit-unassigned] [Bug 63603] New: [Qt] QWebFrame::findAllElements fails to retireve elements on non-valid web pages.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jun 28 20:31:56 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=63603
Summary: [Qt] QWebFrame::findAllElements fails to retireve
elements on non-valid web pages.
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: WebKit Qt
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: adawit at kde.org
Calling "QWebFrame::findAllElements(QLatin1String("form[method=post]"))" on the reduced snippet from an actual page below fails to return all the <input> elements of the form. I am not sure if this is a bug since the HTML below is clearly invalid, but unfortunately there are many such broken web sites out there. In fact this snippet comes from a bug reported downstream, https://bugs.kde.org/show_bug.cgi?id=256029. As such for parsing web forms in kdewebkit we are forced to use JavaScript and the DOM. The question is, this something QtWebKit/webkit should handle properly ? Or is this the limitation of the QWebElement interface due to it reliance on the CSS 3 query language to retrieve elements ?
<table cellspacing=1 cellpadding=5>
<tr>
<td class=listtitle colspan=2>Please enter your Username and Password</td>
</tr>
<form action="/CMD_LOGIN" method="POST" name="form">
<input type=hidden name=referer value="/">
<tr>
<td class=list align=right>Username:</td>
<td class=list><input type=text name=username></td>
</tr>
<tr>
<td class=list align=right>Password:</td>
<td class=list><input type=password name=password></td>
</tr>
<tr>
<td class=listtitle align=right colspan=2><input type=submit value='Login'></td>
</tr>
<tr>
<td align=center colspan=2><a href="/CMD_LOST_PASSWORD">Forgot your Password?</a></td>
</tr>
</form>
</table>
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list