Bug 33099
Summary: | [QT] QWebFrame findFirstElement does't work if id attribute begins with a digit | ||
---|---|---|---|
Product: | WebKit | Reporter: | pepone <pepone.onrez> |
Component: | WebKit Qt | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED INVALID | ||
Severity: | Normal | CC: | kent.hansen |
Priority: | P2 | Keywords: | Qt |
Version: | 528+ (Nightly build) | ||
Hardware: | PC | ||
OS: | Linux |
pepone
Using Qt 4.6 rc2 on gentoo linux i found that findFirstElement returns a null QWebElement when try to select an element and the indentity attribute begins with a digit
Something like this doesn't work as expected.
<body>
<p id="5">Hello</p>
</body>
findFirstElement("#5")
but this works fine
<body>
<p id="a5">Hello</p>
</body>
findFirstElement("#a5")
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Tor Arne Vestbø
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
Please attach a testcase (e.g. in the form of a small Qt app). Thanks.