W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2003

DOMBuilder needs a getFeature

From: Mike Mansell <MMansell@PureEdge.com>
Date: Fri, 18 Apr 2003 13:17:38 -0700
Message-ID: <7874BFCCD289A645B5CE3935769F0B52452CD5@tigger.pureedge.com>
To: <www-dom@w3.org>

As of the spec:

http://www.w3.org/TR/2003/WD-DOM-Level-3-LS-20030226/load-save.html

The DOMBuilder section has this description:

---
Asynchronous DOMBuilder objects are expected to also implement the
events::EventTarget interface so that event listeners can be registered
on asynchronous DOMBuilder objects.
---

However, in order to implement the EventTarget interface, the DOMBuilder
(which does NOT inherit from Node), needs the getFeature method. This
will allow someone to go:

DOMBuilder	myBuilder;
EventTarget	myTarget;

   myTarget = (EventTarget)myBuilder.getFeature("Events", "3.0");
   myTarget.addEventListenerNS("http://www.w3.org/2002/DOMLS",
      "load", myListener, true, NULL);

Michael Mansell, 
Senior Product Architect
PureEdge Solutions
Trusted Digital Relationships
v: 250-708-8046  f: 250-708-8010
1-888-517-2675  http://www.PureEdge.com 
 
Received on Friday, 18 April 2003 16:17:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:56 GMT