forked from SVGKit/SVGKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDocument.h
More file actions
111 lines (91 loc) · 3.81 KB
/
Copy pathDocument.h
File metadata and controls
111 lines (91 loc) · 3.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
/*
// Document.h
NOT a Cocoa / Apple document,
NOT an SVG document,
BUT INSTEAD: a DOM document (blame w3.org for the too-generic name).
Required for SVG-DOM
c.f.:
http://www.w3.org/TR/DOM-Level-2-Core/core.html#i-Document
interface Document : Node {
readonly attribute DocumentType doctype;
readonly attribute DOMImplementation implementation;
readonly attribute Element documentElement;
Element createElement(in DOMString tagName)
raises(DOMException);
DocumentFragment createDocumentFragment();
Text createTextNode(in DOMString data);
Comment createComment(in DOMString data);
CDATASection createCDATASection(in DOMString data)
raises(DOMException);
ProcessingInstruction createProcessingInstruction(in DOMString target,
in DOMString data)
raises(DOMException);
Attr createAttribute(in DOMString name)
raises(DOMException);
EntityReference createEntityReference(in DOMString name)
raises(DOMException);
NodeList getElementsByTagName(in DOMString tagname);
// Introduced in DOM Level 2:
Node importNode(in Node importedNode,
in boolean deep)
raises(DOMException);
// Introduced in DOM Level 2:
Element createElementNS(in DOMString namespaceURI,
in DOMString qualifiedName)
raises(DOMException);
// Introduced in DOM Level 2:
Attr createAttributeNS(in DOMString namespaceURI,
in DOMString qualifiedName)
raises(DOMException);
// Introduced in DOM Level 2:
NodeList getElementsByTagNameNS(in DOMString namespaceURI,
in DOMString localName);
// Introduced in DOM Level 2:
Element getElementById(in DOMString elementId);
};
*/
#import <Foundation/Foundation.h>
/** ObjectiveC won't allow this: @class Node; */
#import "Node.h"
@class Element;
#import "Element.h"
@class Comment;
#import "Comment.h"
@class CDATASection;
#import "CDATASection.h"
@class DocumentFragment;
#import "DocumentFragment.h"
@class EntityReference;
#import "EntityReference.h"
@class NodeList;
#import "NodeList.h"
@class ProcessingInstruction;
#import "ProcessingInstruction.h"
@class DocumentType;
#import "DocumentType.h"
@class AppleSucksDOMImplementation;
#import "AppleSucksDOMImplementation.h"
@interface Document : Node
@property(nonatomic,retain,readonly) DocumentType* doctype;
@property(nonatomic,retain,readonly) AppleSucksDOMImplementation* implementation;
@property(nonatomic,retain,readonly) Element* documentElement;
-(Element*) createElement:(NSString*) tagName __attribute__((ns_returns_retained));
-(DocumentFragment*) createDocumentFragment __attribute__((ns_returns_retained));
-(Text*) createTextNode:(NSString*) data __attribute__((ns_returns_retained));
-(Comment*) createComment:(NSString*) data __attribute__((ns_returns_retained));
-(CDATASection*) createCDATASection:(NSString*) data __attribute__((ns_returns_retained));
-(ProcessingInstruction*) createProcessingInstruction:(NSString*) target data:(NSString*) data __attribute__((ns_returns_retained));
-(Attr*) createAttribute:(NSString*) data __attribute__((ns_returns_retained));
-(EntityReference*) createEntityReference:(NSString*) data __attribute__((ns_returns_retained));
-(NodeList*) getElementsByTagName:(NSString*) data;
// Introduced in DOM Level 2:
-(Node*) importNode:(Node*) importedNode deep:(BOOL) deep;
// Introduced in DOM Level 2:
-(Element*) createElementNS:(NSString*) namespaceURI qualifiedName:(NSString*) qualifiedName __attribute__((ns_returns_retained));
// Introduced in DOM Level 2:
-(Attr*) createAttributeNS:(NSString*) namespaceURI qualifiedName:(NSString*) qualifiedName;
// Introduced in DOM Level 2:
-(NodeList*) getElementsByTagNameNS:(NSString*) namespaceURI localName:(NSString*) localName;
// Introduced in DOM Level 2:
-(Element*) getElementById:(NSString*) elementId;
@end