зеркало из https://github.com/mozilla/gecko-dev.git
Bug 302069, Custom events don't bubble, r=doronr+aaronr, a=mkaply, NPOTB
This commit is contained in:
Родитель
d5fe87b5f6
Коммит
1b4406629b
|
@ -78,11 +78,13 @@ nsXFormsDispatchElement::HandleAction(nsIDOMEvent* aEvent,
|
|||
if (!nsXFormsUtils::IsXFormsEvent(name, cancelable, bubbles)) {
|
||||
nsAutoString cancelableStr;
|
||||
mElement->GetAttribute(NS_LITERAL_STRING("cancelable"), cancelableStr);
|
||||
cancelable = cancelableStr.EqualsLiteral("true");
|
||||
cancelable = !(cancelableStr.EqualsLiteral("false") ||
|
||||
cancelableStr.EqualsLiteral("0"));
|
||||
|
||||
nsAutoString bubbleStr;
|
||||
mElement->GetAttribute(NS_LITERAL_STRING("bubbles"), bubbleStr);
|
||||
bubbles = bubbleStr.EqualsLiteral("true");
|
||||
bubbles = !(bubbleStr.EqualsLiteral("false") ||
|
||||
bubbleStr.EqualsLiteral("0"));
|
||||
|
||||
PRBool tmp;
|
||||
if (cancelableStr.IsEmpty() && bubbleStr.IsEmpty())
|
||||
|
|
Загрузка…
Ссылка в новой задаче