Index: Source/core/html/HTMLElement.cpp |
diff --git a/Source/core/html/HTMLElement.cpp b/Source/core/html/HTMLElement.cpp |
index f11dc4744effdecc44fdbb18561dcb88920e488c..0ffa161f504f4a8c16e66286b3fabc45ea1ae6d2 100644 |
--- a/Source/core/html/HTMLElement.cpp |
+++ b/Source/core/html/HTMLElement.cpp |
@@ -314,7 +314,7 @@ void HTMLElement::parseAttribute(const QualifiedName& name, const AtomicString& |
} else { |
const AtomicString& eventName = eventNameForAttributeName(name); |
if (!eventName.isNull()) |
- setAttributeEventListener(eventName, createAttributeEventListener(this, name, value)); |
+ setAttributeEventListener(eventName, createAttributeEventListener(this, name, value, eventParameterName())); |
} |
} |
@@ -950,6 +950,12 @@ void HTMLElement::handleKeypressEvent(KeyboardEvent* event) |
} |
} |
+const AtomicString& HTMLElement::eventParameterName() |
+{ |
+ DEFINE_STATIC_LOCAL(const AtomicString, eventString, ("event", AtomicString::ConstructFromLiteral)); |
+ return eventString; |
+} |
+ |
} // namespace WebCore |
#ifndef NDEBUG |