Bug 8445

Summary: -[DOMHTMLSelectElement multiple] returns no when the select element is multiple
Product: WebKit Reporter: Rachael Worthington (cheers) <rachael>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
Attachments:
Description Flags
Proposed patch darin: review+

Rachael Worthington (cheers)
Reported 2006-04-17 12:14:13 PDT
- (BOOL)multiple { return ![self _selectElement]->multiple(); } seems like a call to 'multiple' should return YES if it's multiple and not vice versa.
Attachments
Proposed patch (2.49 KB, patch)
2006-05-01 13:25 PDT, Rob Buis
darin: review+
Rachael Worthington (cheers)
Comment 1 2006-04-17 12:19:04 PDT
http://trac.webkit.org/dev/changeset/9825/trunk/WebCore/kwq/DOMHTML.mm Looks like it was broken here, along with some other methods, when webkit switched to using a bool to keep track of it's multiple status from just checking if getAttribute(ATTR_MULTIPLE).isNull(), which DID require the inversion to be correct.
Rob Buis
Comment 2 2006-05-01 13:25:10 PDT
Created attachment 8055 [details] Proposed patch Simple fix really. Just wondering whether there may be more wrong replacements in objC bindings like this? Cheers, Rob.
Darin Adler
Comment 3 2006-05-01 14:21:44 PDT
Comment on attachment 8055 [details] Proposed patch The long term solution for things like this is to automatically generate the Objective-C DOM bindings just as we are doing with the JavaScript bindings. r=me
Note You need to log in before you can comment on or make changes to this bug.