Bug 163358

Summary: Update HTMLSelectElement::recalcListItems() to ignore nested optgroup elements
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: DOMAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, cdumez, commit-queue, darin, rniwa, sam, tkent
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 163296    
Bug Blocks:    
Attachments:
Description Flags
Patch none

Description Chris Dumez 2016-10-12 14:18:37 PDT
Update HTMLSelectElement::recalcListItems() to ignore nested optgroup elements. As per the specification, we only want optgroup elements that are direct children of the select element.
Comment 1 Chris Dumez 2016-10-12 15:35:47 PDT
test case:
https://jsfiddle.net/varkv40b/10/
Comment 2 Chris Dumez 2016-10-12 15:40:44 PDT
(In reply to comment #1)
> test case:
> https://jsfiddle.net/varkv40b/10/

Better: https://jsfiddle.net/varkv40b/16/
Comment 3 Chris Dumez 2016-10-12 15:48:33 PDT
Created attachment 291410 [details]
Patch
Comment 4 WebKit Commit Bot 2016-10-12 21:16:26 PDT
Comment on attachment 291410 [details]
Patch

Clearing flags on attachment: 291410

Committed r207276: <http://trac.webkit.org/changeset/207276>
Comment 5 WebKit Commit Bot 2016-10-12 21:16:31 PDT
All reviewed patches have been landed.  Closing bug.