Index: client/dom/scripts/systemhtml.py |
diff --git a/client/dom/scripts/systemhtml.py b/client/dom/scripts/systemhtml.py |
index 64748f425d9e1ea2ddcfd0e1cda4b8009d174bc8..5497ee4171346a9d9d67906cd2c38734ebf8e2cf 100644 |
--- a/client/dom/scripts/systemhtml.py |
+++ b/client/dom/scripts/systemhtml.py |
@@ -474,9 +474,9 @@ class HtmlSystemShared(object): |
# TODO(jacobr): this isn't quite right.... |
def GetParentsEventsClasses(self, interface): |
- # Ugly hack as we don't specify that Document inherits from Element |
- # in our IDL. |
- if interface.id == 'Document': |
+ # Ugly hack as we don't specify that Document and DocumentFragment inherit |
+ # from Element in our IDL. |
+ if interface.id == 'Document' or interface.id == 'DocumentFragment': |
return ['ElementEvents'] |
Jacob
2012/03/06 05:09:00
Why are you hard coding the parent for 'Document'?
nweiz
2012/03/06 20:10:47
That was there prior to this change.
|
interfaces_with_events = set() |