/* * Copyright (c) 2000 World Wide Web Consortium, * (Massachusetts Institute of Technology, Institut National de * Recherche en Informatique et en Automatique, Keio University). All * Rights Reserved. This program is distributed under the W3C's Software * Intellectual Property License. This program is distributed in the * hope that it will be useful, but WITHOUT ANY WARRANTY; without even * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. * See W3C License http://www.w3.org/Consortium/Legal/ for more details. */ // File: http://www.w3.org/TR/2000/WD-DOM-Level-3-Core-20000901/dom.idl #ifndef _DOM_IDL_ #define _DOM_IDL_ #pragma prefix "w3c.org" module dom { typedef null::DOMString DOMString; typedef null::Object Object; typedef null::Node Node; typedef null::Entity Entity; typedef null::Document Document; typedef null::NodeList NodeList; typedef null::Text Text; interface Node3 { readonly attribute DOMString baseURI; typedef enum _DocumentOrder { PRECEDING, FOLLOWING, SAME, UNORDERED }; DocumentOrder; DocumentOrder compareDocumentOrder(in Node other) raises(DOMException); typedef enum _TreePosition { PRECEDING, FOLLOWING, ANCESTOR, DESCENDANT, SAME, UNORDERED }; TreePosition; TreePosition compareTreePosition(in Node other) raises(DOMException); attribute DOMString textContent; boolean isSameNode(in Node other); DOMString lookupNamespacePrefix(in DOMString namespaceURI); DOMString lookupNamespaceURI(in DOMString prefix); void normalizeNS(); Object setUserData(in Object data, in DOMString key); Object getUserData(in DOMString key); readonly attribute Object key; }; interface Entity3 : Entity { attribute DOMString actualEncoding; attribute DOMString encoding; attribute DOMString version; }; interface Document3 : Document { attribute DOMString actualEncoding; attribute DOMString encoding; attribute boolean standalone; attribute boolean strictErrorChecking; attribute DOMString version; Node adoptNode(in Node source) raises(DOMException); NodeList getElementsByAttributeValue(in DOMString namespaceURI, in DOMString localName, in DOMString value); }; interface Text3 : Text { readonly attribute boolean isWhitespaceInElementContent; }; }; #endif // _DOM_IDL_