| Index: Source/WebCore/html/HTMLSelectElement.cpp
|
| ===================================================================
|
| --- Source/WebCore/html/HTMLSelectElement.cpp (revision 139720)
|
| +++ Source/WebCore/html/HTMLSelectElement.cpp (working copy)
|
| @@ -747,8 +747,8 @@
|
| // (http://www.w3.org/TR/html401/interact/forms.html#h-17.6)
|
| if (current->hasTagName(optgroupTag)) {
|
| m_listItems.append(current);
|
| - if (current->firstChild()) {
|
| - currentElement = ElementTraversal::firstWithin(current);
|
| + if (Element* nextElement = ElementTraversal::firstWithin(current)) {
|
| + currentElement = nextElement;
|
| continue;
|
| }
|
| }
|
|
|