Bug 1134280 - Get rid of Tag() - patch 2.8 - dom/html - Fix all the occurrences, m=smaug, r=surkov
This commit is contained in:
@@ -73,10 +73,10 @@ HTMLOptGroupElement::GetSelect()
|
||||
{
|
||||
nsIContent* parent = this;
|
||||
while ((parent = parent->GetParent()) && parent->IsHTMLElement()) {
|
||||
if (parent->Tag() == nsGkAtoms::select) {
|
||||
if (parent->IsHTMLElement(nsGkAtoms::select)) {
|
||||
return parent;
|
||||
}
|
||||
if (parent->Tag() != nsGkAtoms::optgroup) {
|
||||
if (!parent->IsHTMLElement(nsGkAtoms::optgroup)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user