forked from SVGKit/SVGKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNamedNodeMap.h
More file actions
55 lines (41 loc) · 1.61 KB
/
Copy pathNamedNodeMap.h
File metadata and controls
55 lines (41 loc) · 1.61 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
/*
From SVG-DOM, via Core-DOM:
http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-1780488922
interface NamedNodeMap {
Node getNamedItem(in DOMString name);
Node setNamedItem(in Node arg)
raises(DOMException);
Node removeNamedItem(in DOMString name)
raises(DOMException);
Node item(in unsigned long index);
readonly attribute unsigned long length;
// Introduced in DOM Level 2:
Node getNamedItemNS(in DOMString namespaceURI,
in DOMString localName);
// Introduced in DOM Level 2:
Node setNamedItemNS(in Node arg)
raises(DOMException);
// Introduced in DOM Level 2:
Node removeNamedItemNS(in DOMString namespaceURI,
in DOMString localName)
raises(DOMException);
};
*/
#import <Foundation/Foundation.h>
@class Node;
#import "Node.h"
@interface NamedNodeMap : NSObject
-(Node*) getNamedItem:(NSString*) name;
-(Node*) setNamedItem:(Node*) arg;
-(Node*) removeNamedItem:(NSString*) name;
-(Node*) item:(unsigned long) index;
@property(readonly) unsigned long length;
// Introduced in DOM Level 2:
-(Node*) getNamedItemNS:(NSString*) namespaceURI localName:(NSString*) localName;
// Introduced in DOM Level 2:
-(Node*) setNamedItemNS:(Node*) arg;
// Introduced in DOM Level 2:
-(Node*) removeNamedItemNS:(NSString*) namespaceURI localName:(NSString*) localName;
#pragma mark - MISSING METHOD FROM SVG Spec, without which you cannot parse documents (don't understand how they intended you to fulfil the spec without this method)
-(Node*) setNamedItemNS:(Node*) arg inNodeNamespace:(NSString*) nodesNamespace;
@end