XMLDOMImplementation.js 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. // Generated by CoffeeScript 2.4.1
  2. (function() {
  3. // Implements the DOMImplementation interface
  4. var XMLDOMImplementation;
  5. module.exports = XMLDOMImplementation = class XMLDOMImplementation {
  6. // Tests if the DOM implementation implements a specific feature.
  7. // `feature` package name of the feature to test. In Level 1, the
  8. // legal values are "HTML" and "XML" (case-insensitive).
  9. // `version` version number of the package name to test.
  10. // In Level 1, this is the string "1.0". If the version is
  11. // not specified, supporting any version of the feature will
  12. // cause the method to return true.
  13. hasFeature(feature, version) {
  14. return true;
  15. }
  16. // Creates a new document type declaration.
  17. // `qualifiedName` qualified name of the document type to be created
  18. // `publicId` public identifier of the external subset
  19. // `systemId` system identifier of the external subset
  20. createDocumentType(qualifiedName, publicId, systemId) {
  21. throw new Error("This DOM method is not implemented.");
  22. }
  23. // Creates a new document.
  24. // `namespaceURI` namespace URI of the document element to create
  25. // `qualifiedName` the qualified name of the document to be created
  26. // `doctype` the type of document to be created or null
  27. createDocument(namespaceURI, qualifiedName, doctype) {
  28. throw new Error("This DOM method is not implemented.");
  29. }
  30. // Creates a new HTML document.
  31. // `title` document title
  32. createHTMLDocument(title) {
  33. throw new Error("This DOM method is not implemented.");
  34. }
  35. // Returns a specialized object which implements the specialized APIs
  36. // of the specified feature and version.
  37. // `feature` name of the feature requested.
  38. // `version` version number of the feature to test
  39. getFeature(feature, version) {
  40. throw new Error("This DOM method is not implemented.");
  41. }
  42. };
  43. }).call(this);