Bug 1167816 - Do not treat anchor element without href attribute an interactive content. r=smaug

This commit is contained in:
Tooru Fujisawa
2015-05-29 18:23:08 +09:00
parent 6e0fd1e5fd
commit 6c49c5d9e8
3 changed files with 9 additions and 4 deletions

View File

@@ -43,6 +43,13 @@ HTMLAnchorElement::~HTMLAnchorElement()
{
}
bool
HTMLAnchorElement::IsInteractiveHTMLContent(bool aIgnoreTabindex) const
{
return HasAttr(kNameSpaceID_None, nsGkAtoms::href) ||
nsGenericHTMLElement::IsInteractiveHTMLContent(aIgnoreTabindex);
}
NS_INTERFACE_TABLE_HEAD_CYCLE_COLLECTION_INHERITED(HTMLAnchorElement)
NS_INTERFACE_TABLE_INHERITED(HTMLAnchorElement,
nsIDOMHTMLAnchorElement,