diff options
Diffstat (limited to 'src/components/script/dom/document.rs')
-rw-r--r-- | src/components/script/dom/document.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/components/script/dom/document.rs b/src/components/script/dom/document.rs index 9805ea71dfa..72f0c378a95 100644 --- a/src/components/script/dom/document.rs +++ b/src/components/script/dom/document.rs @@ -10,6 +10,7 @@ use dom::bindings::utils::{is_valid_element_name, InvalidCharacter, Traceable, n use dom::documentfragment::DocumentFragment; use dom::element::{Element}; use dom::element::{HTMLHeadElementTypeId, HTMLTitleElementTypeId}; +use dom::event::Event; use dom::htmlcollection::HTMLCollection; use dom::htmldocument::HTMLDocument; use dom::node::{AbstractNode, ScriptView, Node, ElementNodeTypeId, DocumentNodeTypeId}; @@ -255,6 +256,11 @@ impl Document { Comment::new(null_str_as_word_null(data), abstract_self) } + pub fn CreateEvent(&self, interface: &DOMString) -> Fallible<@mut Event> { + //FIXME: We need to do a proper Event inheritance simulation + Ok(Event::new(self.window, interface)) + } + pub fn Title(&self, _: AbstractDocument) -> DOMString { let mut title = ~""; match self.doctype { |