| Index: Source/core/html/HTMLDialogElement.cpp
|
| diff --git a/Source/core/html/HTMLDialogElement.cpp b/Source/core/html/HTMLDialogElement.cpp
|
| index be7af1bd8b6d156452628c8da50da61558c69405..b868465b663786a4b65a39e2cf197406f5f015c9 100644
|
| --- a/Source/core/html/HTMLDialogElement.cpp
|
| +++ b/Source/core/html/HTMLDialogElement.cpp
|
| @@ -45,7 +45,7 @@ static void setFocusForModalDialog(HTMLDialogElement* dialog)
|
| Element* focusableDescendant = 0;
|
| Node* next = 0;
|
| for (Node* node = dialog->firstChild(); node; node = next) {
|
| - if (node->hasTagName(dialogTag))
|
| + if (isHTMLDialogElement(*node))
|
| next = NodeTraversal::nextSkippingChildren(*node, dialog);
|
| else
|
| next = NodeTraversal::next(*node, dialog);
|
|
|