Bug 43697 - [Qt] getMatchedCSSRules returns null if second argument is not specified.
Summary: [Qt] getMatchedCSSRules returns null if second argument is not specified.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 528+ (Nightly build)
Hardware: Macintosh Intel OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords: Qt
Depends on:
Blocks:
 
Reported: 2010-08-08 12:41 PDT by Alex Karpenko
Modified: 2010-08-18 20:42 PDT (History)
2 users (show)

See Also:


Attachments
Qt project that reproduces the bug (532 bytes, application/octet-stream)
2010-08-08 12:41 PDT, Alex Karpenko
no flags Details
Qt project that reproduces the bug [USE THIS ONE] (1.14 KB, application/octet-stream)
2010-08-08 12:51 PDT, Alex Karpenko
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Karpenko 2010-08-08 12:41:51 PDT
Created attachment 63850 [details]
Qt project that reproduces the bug

getMatchedCSSRules returns null only if the 2nd argument is not specified. So:
getMatchedCSSRules(element); // returns null
getMatchedCSSRules(element, ''); // returns the CSSRuleList as expected

In chrome and safari the above two statements both produce the latter result.
Comment 1 Alex Karpenko 2010-08-08 12:51:09 PDT
Created attachment 63851 [details]
Qt project that reproduces the bug [USE THIS ONE]
Comment 2 Andreas Kling 2010-08-18 20:42:13 PDT
This has been fixed a long time ago and will be part of the upcoming QtWebKit 2.1