Bug 11691 - REGRESSION (r17399, r17511): WebElementDictionary no longer returns nil NSStrings
Summary: REGRESSION (r17399, r17511): WebElementDictionary no longer returns nil NSStr...
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit API (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P1 Normal
Assignee: Beth Dakin
Keywords: Regression
Depends on:
Reported: 2006-11-25 17:11 PST by Adam Roben (:aroben)
Modified: 2006-11-29 10:18 PST (History)
1 user (show)

See Also:

testcase (184 bytes, text/html)
2006-11-25 17:16 PST, Adam Roben (:aroben)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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]
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.