Bug 33099 - [QT] QWebFrame findFirstElement does't work if id attribute begins with a digit
Summary: [QT] QWebFrame findFirstElement does't work if id attribute begins with a digit
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords: Qt
Depends on:
Blocks:
 
Reported: 2010-01-01 18:31 PST by pepone
Modified: 2010-03-11 05:18 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pepone 2010-01-01 18:31:00 PST
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")
Comment 1 Tor Arne Vestbø 2010-03-10 06:28:32 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
Comment 2 Kent Hansen 2010-03-11 05:18:54 PST
Please attach a testcase (e.g. in the form of a small Qt app). Thanks.