Bug 27828 - Title attribute is not respected on option elements
Summary: Title attribute is not respected on option elements
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: 528+ (Nightly build)
Hardware: Macintosh Intel OS X 10.5
: P2 Normal
Assignee: Mark Rowe (bdash)
URL:
Keywords: HasReduction
Depends on:
Blocks: 27864
  Show dependency treegraph
 
Reported: 2009-07-30 00:54 PDT by Adam Brunner
Modified: 2009-07-30 18:30 PDT (History)
1 user (show)

See Also:


Attachments
testcase for the bug (408 bytes, text/html)
2009-07-30 00:54 PDT, Adam Brunner
no flags Details
firefox screencapture (5.69 KB, image/jpeg)
2009-07-30 00:56 PDT, Adam Brunner
no flags Details
webkit screencapture (2.97 KB, image/jpeg)
2009-07-30 00:56 PDT, Adam Brunner
no flags Details
Patch for the Mac part of this (4.15 KB, patch)
2009-07-30 18:24 PDT, Mark Rowe (bdash)
adele: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Brunner 2009-07-30 00:54:10 PDT
Created attachment 33762 [details]
testcase for the bug

If I create an <option> element with title="option's title text" in a <select>, the tooltip will not be shown.
Comment 1 Adam Brunner 2009-07-30 00:56:15 PDT
Created attachment 33763 [details]
firefox screencapture
Comment 2 Adam Brunner 2009-07-30 00:56:33 PDT
Created attachment 33764 [details]
webkit screencapture
Comment 3 Adam Brunner 2009-07-30 00:59:37 PDT
Additionally, the W3C HTML4.01 Specification defines [1] that <option> can have a title attribute.

Also Mozilla Firefox and Microsoft Internet Explorer 7+ do this well.

[1] http://www.w3.org/TR/html401/interact/forms.html#edef-OPTION
Comment 4 Mark Rowe (bdash) 2009-07-30 02:01:02 PDT
This is trivial to fix on Mac, but somewhat more involved on other platforms.
Comment 5 Mark Rowe (bdash) 2009-07-30 18:24:30 PDT
Created attachment 33851 [details]
Patch for the Mac part of this

I'll clone this bug to track fixing this for other platforms after this is landed.
Comment 6 Mark Rowe (bdash) 2009-07-30 18:29:03 PDT
Landed in r46617.
Comment 7 Mark Rowe (bdash) 2009-07-30 18:30:24 PDT
Bug 27864 tracks fixing this for other platforms.