import ClassicNick's palemoon27-20190223-VC10

This commit is contained in:
2024-04-30 10:38:14 +08:00
parent 2e31415af7
commit 54a6e963dd
1135 changed files with 58563 additions and 144299 deletions
+5 -1
View File
@@ -352,7 +352,11 @@ IsElementAnchor(nsIContent* aContent)
{
// Make sure we are dealing with either an <A> or <AREA> element in the HTML
// or XHTML namespace.
return aContent->IsAnyOfHTMLElements(nsGkAtoms::a, nsGkAtoms::area);
if (!aContent->IsHTMLElement()) {
return false;
}
nsIAtom* nameAtom = aContent->Tag();
return nameAtom == nsGkAtoms::a || nameAtom == nsGkAtoms::area;
}
static void