Index: Source/core/svg/SVGAElement.cpp |
diff --git a/Source/core/svg/SVGAElement.cpp b/Source/core/svg/SVGAElement.cpp |
index 1ac0164c6c3e7962e4348c90cf6cc46773694018..db4f473f6baefe91c83023114670b563e06c19e8 100644 |
--- a/Source/core/svg/SVGAElement.cpp |
+++ b/Source/core/svg/SVGAElement.cpp |
@@ -156,7 +156,7 @@ void SVGAElement::defaultEventHandler(Event* event) |
return; |
} |
// Only allow navigation to internal <view> anchors. |
- if (targetElement && !targetElement->hasTagName(SVGNames::viewTag)) |
+ if (targetElement && !isSVGViewElement(*targetElement)) |
return; |
} |