Bug 163358

Summary: Update HTMLSelectElement::recalcListItems() to ignore nested optgroup elements
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: DOMAssignee: Chris Dumez <cdumez>
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:    
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:
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]
Comment 4 WebKit Commit Bot 2016-10-12 21:16:26 PDT
Comment on attachment 291410 [details]

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.