Bug 229925 - Do not dispatch event to label target if interactive content is found between the event target and the label. r=smaug

This commit is contained in:
Tooru Fujisawa
2015-01-21 05:39:28 +09:00
parent 95bc90e89d
commit b10a0c8ee5
24 changed files with 265 additions and 11 deletions

View File

@@ -40,6 +40,12 @@ HTMLAudioElement::~HTMLAudioElement()
{
}
bool
HTMLAudioElement::IsInteractiveHTMLContent() const
{
return HasAttr(kNameSpaceID_None, nsGkAtoms::controls);
}
already_AddRefed<HTMLAudioElement>
HTMLAudioElement::Audio(const GlobalObject& aGlobal,
const Optional<nsAString>& aSrc,