Bug 11691

Summary: REGRESSION (r17399, r17511): WebElementDictionary no longer returns nil NSStrings
Product: WebKit Reporter: Adam Roben (:aroben) <aroben>
Component: WebKit APIAssignee: Beth Dakin <bdakin>
Status: RESOLVED FIXED    
Severity: Normal CC: aroben
Priority: P1 Keywords: Regression
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
Attachments:
Description Flags
testcase none

Description Adam Roben (:aroben) 2006-11-25 17:11:48 PST
r17399 and r17511 moved the functionality of WebElementDictionary into WebCore. However, this caused a behavior change in WebElementDictionary: before, an <a> element with no title attribute would return a nil NSString* when asked for WebElementLinkTitleKey. Now it returns an empty NSString (i.e., ""). This is causing problems with proposed bookmark titles.
Comment 1 Adam Roben (:aroben) 2006-11-25 17:16:38 PST
Created attachment 11631 [details]
testcase
Comment 2 Adam Roben (:aroben) 2006-11-25 22:22:03 PST
This also raises the question of whether methods like HitTestResult::title() should be able to differentiate between <a> and <a title="">
Comment 3 Beth Dakin 2006-11-29 10:18:48 PST
Fixed with r17919.