tck-lambdas 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,101 @@
1
+ {
2
+ "name": "xmldom",
3
+ "version": "0.1.22",
4
+ "description": "A W3C Standard XML DOM(Level2 CORE) implementation and parser(DOMParser/XMLSerializer).",
5
+ "keywords": [
6
+ "w3c",
7
+ "dom",
8
+ "xml",
9
+ "parser",
10
+ "javascript",
11
+ "DOMParser",
12
+ "XMLSerializer"
13
+ ],
14
+ "author": {
15
+ "name": "jindw",
16
+ "email": "jindw@xidea.org",
17
+ "url": "http://www.xidea.org"
18
+ },
19
+ "homepage": "https://github.com/jindw/xmldom",
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "git://github.com/jindw/xmldom.git"
23
+ },
24
+ "main": "./dom-parser.js",
25
+ "scripts": {
26
+ "test": "proof platform win32 && proof test */*/*.t.js || t/test"
27
+ },
28
+ "engines": {
29
+ "node": ">=0.1"
30
+ },
31
+ "dependencies": {},
32
+ "devDependencies": {
33
+ "proof": "0.0.28"
34
+ },
35
+ "maintainers": [
36
+ {
37
+ "name": "jindw",
38
+ "email": "jindw@xidea.org"
39
+ },
40
+ {
41
+ "name": "yaron",
42
+ "email": "yaronn01@gmail.com"
43
+ },
44
+ {
45
+ "name": "bigeasy",
46
+ "email": "alan@prettyrobots.com"
47
+ },
48
+ {
49
+ "name": "kethinov",
50
+ "email": "kethinov@gmail.com"
51
+ },
52
+ {
53
+ "name": "jinjinyun",
54
+ "email": "jinyun.jin@gmail.com"
55
+ }
56
+ ],
57
+ "contributors": [
58
+ {
59
+ "name": "Yaron Naveh",
60
+ "email": "yaronn01@gmail.com",
61
+ "url": "http://webservices20.blogspot.com/"
62
+ },
63
+ {
64
+ "name": "Harutyun Amirjanyan",
65
+ "email": "amirjanyan@gmail.com",
66
+ "url": "https://github.com/nightwing"
67
+ },
68
+ {
69
+ "name": "Alan Gutierrez",
70
+ "email": "alan@prettyrobots.com",
71
+ "url": "http://www.prettyrobots.com/"
72
+ }
73
+ ],
74
+ "bugs": {
75
+ "url": "http://github.com/jindw/xmldom/issues",
76
+ "email": "jindw@xidea.org"
77
+ },
78
+ "licenses": [
79
+ {
80
+ "type": "LGPL",
81
+ "url": "http://www.gnu.org/licenses/lgpl.html",
82
+ "MIT": "http://opensource.org/licenses/MIT"
83
+ }
84
+ ],
85
+ "gitHead": "29a83b315aef56c156602286b2d884a3b4c2521f",
86
+ "_id": "xmldom@0.1.22",
87
+ "_shasum": "10de4e5e964981f03c8cc72fadc08d14b6c3aa26",
88
+ "_from": "xmldom@latest",
89
+ "_npmVersion": "3.3.12",
90
+ "_nodeVersion": "5.5.0",
91
+ "_npmUser": {
92
+ "name": "jindw",
93
+ "email": "jindw@xidea.org"
94
+ },
95
+ "dist": {
96
+ "shasum": "10de4e5e964981f03c8cc72fadc08d14b6c3aa26",
97
+ "tarball": "https://registry.npmjs.org/xmldom/-/xmldom-0.1.22.tgz"
98
+ },
99
+ "directories": {},
100
+ "_resolved": "https://registry.npmjs.org/xmldom/-/xmldom-0.1.22.tgz"
101
+ }
@@ -0,0 +1,219 @@
1
+ # XMLDOM [![Build Status](https://secure.travis-ci.org/bigeasy/xmldom.png?branch=master)](http://travis-ci.org/bigeasy/xmldom) [![Coverage Status](https://coveralls.io/repos/bigeasy/xmldom/badge.png?branch=master)](https://coveralls.io/r/bigeasy/xmldom) [![NPM version](https://badge.fury.io/js/xmldom.png)](http://badge.fury.io/js/xmldom)
2
+
3
+ A JavaScript implementation of W3C DOM for Node.js, Rhino and the browser. Fully
4
+ compatible with `W3C DOM level2`; and some compatible with `level3`. Supports
5
+ `DOMParser` and `XMLSerializer` interface such as in browser.
6
+
7
+ Install:
8
+ -------
9
+ >npm install xmldom
10
+
11
+ Example:
12
+ ====
13
+ ```javascript
14
+ var DOMParser = require('xmldom').DOMParser;
15
+ var doc = new DOMParser().parseFromString(
16
+ '<xml xmlns="a" xmlns:c="./lite">\n'+
17
+ '\t<child>test</child>\n'+
18
+ '\t<child></child>\n'+
19
+ '\t<child/>\n'+
20
+ '</xml>'
21
+ ,'text/xml');
22
+ doc.documentElement.setAttribute('x','y');
23
+ doc.documentElement.setAttributeNS('./lite','c:x','y2');
24
+ var nsAttr = doc.documentElement.getAttributeNS('./lite','x')
25
+ console.info(nsAttr)
26
+ console.info(doc)
27
+ ```
28
+ API Reference
29
+ =====
30
+
31
+ * [DOMParser](https://developer.mozilla.org/en/DOMParser):
32
+
33
+ ```javascript
34
+ parseFromString(xmlsource,mimeType)
35
+ ```
36
+ * **options extension** _by xmldom_(not BOM standard!!)
37
+
38
+ ```javascript
39
+ //added the options argument
40
+ new DOMParser(options)
41
+
42
+ //errorHandler is supported
43
+ new DOMParser({
44
+ /**
45
+ * locator is always need for error position info
46
+ */
47
+ locator:{},
48
+ /**
49
+ * you can override the errorHandler for xml parser
50
+ * @link http://www.saxproject.org/apidoc/org/xml/sax/ErrorHandler.html
51
+ */
52
+ errorHandler:{warning:function(w){console.warn(w)},error:callback,fatalError:callback}
53
+ //only callback model
54
+ //errorHandler:function(level,msg){console.log(level,msg)}
55
+ })
56
+
57
+ ```
58
+
59
+ * [XMLSerializer](https://developer.mozilla.org/en/XMLSerializer)
60
+
61
+ ```javascript
62
+ serializeToString(node)
63
+ ```
64
+ DOM level2 method and attribute:
65
+ ------
66
+
67
+ * [Node](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-1950641247)
68
+
69
+ attribute:
70
+ nodeValue|prefix
71
+ readonly attribute:
72
+ nodeName|nodeType|parentNode|childNodes|firstChild|lastChild|previousSibling|nextSibling|attributes|ownerDocument|namespaceURI|localName
73
+ method:
74
+ insertBefore(newChild, refChild)
75
+ replaceChild(newChild, oldChild)
76
+ removeChild(oldChild)
77
+ appendChild(newChild)
78
+ hasChildNodes()
79
+ cloneNode(deep)
80
+ normalize()
81
+ isSupported(feature, version)
82
+ hasAttributes()
83
+
84
+ * [DOMImplementation](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-102161490)
85
+
86
+ method:
87
+ hasFeature(feature, version)
88
+ createDocumentType(qualifiedName, publicId, systemId)
89
+ createDocument(namespaceURI, qualifiedName, doctype)
90
+
91
+ * [Document](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#i-Document) : Node
92
+
93
+ readonly attribute:
94
+ doctype|implementation|documentElement
95
+ method:
96
+ createElement(tagName)
97
+ createDocumentFragment()
98
+ createTextNode(data)
99
+ createComment(data)
100
+ createCDATASection(data)
101
+ createProcessingInstruction(target, data)
102
+ createAttribute(name)
103
+ createEntityReference(name)
104
+ getElementsByTagName(tagname)
105
+ importNode(importedNode, deep)
106
+ createElementNS(namespaceURI, qualifiedName)
107
+ createAttributeNS(namespaceURI, qualifiedName)
108
+ getElementsByTagNameNS(namespaceURI, localName)
109
+ getElementById(elementId)
110
+
111
+ * [DocumentFragment](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-B63ED1A3) : Node
112
+ * [Element](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-745549614) : Node
113
+
114
+ readonly attribute:
115
+ tagName
116
+ method:
117
+ getAttribute(name)
118
+ setAttribute(name, value)
119
+ removeAttribute(name)
120
+ getAttributeNode(name)
121
+ setAttributeNode(newAttr)
122
+ removeAttributeNode(oldAttr)
123
+ getElementsByTagName(name)
124
+ getAttributeNS(namespaceURI, localName)
125
+ setAttributeNS(namespaceURI, qualifiedName, value)
126
+ removeAttributeNS(namespaceURI, localName)
127
+ getAttributeNodeNS(namespaceURI, localName)
128
+ setAttributeNodeNS(newAttr)
129
+ getElementsByTagNameNS(namespaceURI, localName)
130
+ hasAttribute(name)
131
+ hasAttributeNS(namespaceURI, localName)
132
+
133
+ * [Attr](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-637646024) : Node
134
+
135
+ attribute:
136
+ value
137
+ readonly attribute:
138
+ name|specified|ownerElement
139
+
140
+ * [NodeList](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-536297177)
141
+
142
+ readonly attribute:
143
+ length
144
+ method:
145
+ item(index)
146
+
147
+ * [NamedNodeMap](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-1780488922)
148
+
149
+ readonly attribute:
150
+ length
151
+ method:
152
+ getNamedItem(name)
153
+ setNamedItem(arg)
154
+ removeNamedItem(name)
155
+ item(index)
156
+ getNamedItemNS(namespaceURI, localName)
157
+ setNamedItemNS(arg)
158
+ removeNamedItemNS(namespaceURI, localName)
159
+
160
+ * [CharacterData](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-FF21A306) : Node
161
+
162
+ method:
163
+ substringData(offset, count)
164
+ appendData(arg)
165
+ insertData(offset, arg)
166
+ deleteData(offset, count)
167
+ replaceData(offset, count, arg)
168
+
169
+ * [Text](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-1312295772) : CharacterData
170
+
171
+ method:
172
+ splitText(offset)
173
+
174
+ * [CDATASection](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-667469212)
175
+ * [Comment](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-1728279322) : CharacterData
176
+
177
+ * [DocumentType](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-412266927)
178
+
179
+ readonly attribute:
180
+ name|entities|notations|publicId|systemId|internalSubset
181
+
182
+ * Notation : Node
183
+
184
+ readonly attribute:
185
+ publicId|systemId
186
+
187
+ * Entity : Node
188
+
189
+ readonly attribute:
190
+ publicId|systemId|notationName
191
+
192
+ * EntityReference : Node
193
+ * ProcessingInstruction : Node
194
+
195
+ attribute:
196
+ data
197
+ readonly attribute:
198
+ target
199
+
200
+ DOM level 3 support:
201
+ -----
202
+
203
+ * [Node](http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-textContent)
204
+
205
+ attribute:
206
+ textContent
207
+ method:
208
+ isDefaultNamespace(namespaceURI){
209
+ lookupNamespaceURI(prefix)
210
+
211
+ DOM extension by xmldom
212
+ ---
213
+ * [Node] Source position extension;
214
+
215
+ attribute:
216
+ //Numbered starting from '1'
217
+ lineNumber
218
+ //Numbered starting from '1'
219
+ columnNumber