nsIDOMDOMImplementation.idl 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #include "domstubs.idl"
  6. /**
  7. * The nsIDOMDOMImplementation interface provides a number of methods for
  8. * performing operations that are independent of any particular instance
  9. * of the document object model.
  10. *
  11. * For more information on this interface please see
  12. * http://www.w3.org/TR/DOM-Level-2-Core/
  13. */
  14. [uuid(03a6f574-99ec-42f8-9e6c-812a4a9bcbf7)]
  15. interface nsIDOMDOMImplementation : nsISupports
  16. {
  17. boolean hasFeature(in DOMString feature,
  18. in DOMString version);
  19. nsIDOMDocumentType createDocumentType(in DOMString qualifiedName,
  20. in DOMString publicId,
  21. in DOMString systemId)
  22. raises(DOMException);
  23. nsIDOMDocument createDocument(in DOMString namespaceURI,
  24. in DOMString qualifiedName,
  25. in nsIDOMDocumentType doctype)
  26. raises(DOMException);
  27. /**
  28. * Returns an HTML document with a basic DOM already constructed and with an
  29. * appropriate title element.
  30. *
  31. * @param title the title of the Document
  32. * @see <http://www.whatwg.org/html/#creating-documents>
  33. */
  34. nsIDOMDocument createHTMLDocument([Null(Stringify)]
  35. in DOMString title);
  36. };