AppleSucksDOMImplementation.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. PLEASE NOTE: Apple has made a PRIVATE implementation of this class, and because of their
  3. stupid App Store rules they ban everyone else in the world from using a class with the
  4. same name. Instead of making the class public, they have stolen it out of the global
  5. namespace. This is the wrong thing to do, but we are required to rename our classes
  6. because of this.
  7. SVG-DOM, via Core DOM:
  8. http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-102161490
  9. interface DOMImplementation {
  10. boolean hasFeature(in DOMString feature,
  11. in DOMString version);
  12. // Introduced in DOM Level 2:
  13. DocumentType createDocumentType(in DOMString qualifiedName,
  14. in DOMString publicId,
  15. in DOMString systemId)
  16. raises(DOMException);
  17. // Introduced in DOM Level 2:
  18. Document createDocument(in DOMString namespaceURI,
  19. in DOMString qualifiedName,
  20. in DocumentType doctype)
  21. raises(DOMException);
  22. };
  23. */
  24. #import <Foundation/Foundation.h>
  25. #import "DocumentType.h"
  26. @interface AppleSucksDOMImplementation : NSObject
  27. -(BOOL) hasFeature:(NSString*) feature version:(NSString*) version;
  28. // Introduced in DOM Level 2:
  29. -(DocumentType*) createDocumentType:(NSString*) qualifiedName publicId:(NSString*) publicId systemId:(NSString*) systemId;
  30. // Introduced in DOM Level 2:
  31. -(Document*) createDocument:(NSString*) namespaceURI qualifiedName:(NSString*) qualifiedName doctype:(DocumentType*) doctype;
  32. @end