Bug 43697

Summary: [Qt] getMatchedCSSRules returns null if second argument is not specified.
Product: WebKit Reporter: Alex Karpenko <alexkarpenko>
Component: WebKit QtAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: alexkarpenko, kling
Priority: P2 Keywords: Qt
Version: 528+ (Nightly build)   
Hardware: Mac (Intel)   
OS: OS X 10.5   
Attachments:
Description Flags
Qt project that reproduces the bug
none
Qt project that reproduces the bug [USE THIS ONE] none

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