mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1167816 - Do not treat anchor element without href attribute an interactive content. r=smaug
This commit is contained in:
parent
c9c82eeaa3
commit
195dc34454
@ -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,
|
||||
|
@ -43,10 +43,7 @@ public:
|
||||
virtual bool Draggable() const override;
|
||||
|
||||
// Element
|
||||
virtual bool IsInteractiveHTMLContent(bool aIgnoreTabindex) const override
|
||||
{
|
||||
return true;
|
||||
}
|
||||
virtual bool IsInteractiveHTMLContent(bool aIgnoreTabindex) const override;
|
||||
|
||||
// nsIDOMHTMLAnchorElement
|
||||
NS_DECL_NSIDOMHTMLANCHORELEMENT
|
||||
|
@ -33,6 +33,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=229925
|
||||
<textarea class="yes" cols="1" rows="1"></textarea>
|
||||
<video class="yes" controls></video>
|
||||
|
||||
<a class="no">a</a>
|
||||
<audio class="no"></audio>
|
||||
<img class="no" src="data:image/png,">
|
||||
<input class="no" type="hidden">
|
||||
|
Loading…
Reference in New Issue
Block a user