envjs 0.1.7 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (187) hide show
  1. data/.jslintrbrc +29 -0
  2. data/.project +17 -0
  3. data/CHANGELOG.rdoc +3 -0
  4. data/DTD/xhtml-lat1.ent +196 -0
  5. data/DTD/xhtml-special.ent +80 -0
  6. data/DTD/xhtml-symbol.ent +237 -0
  7. data/DTD/xhtml.soc +14 -0
  8. data/DTD/xhtml1-frameset.dtd +1235 -0
  9. data/DTD/xhtml1-strict.dtd +978 -0
  10. data/DTD/xhtml1-transitional.dtd +1201 -0
  11. data/DTD/xhtml1.dcl +192 -0
  12. data/Makefile +7 -0
  13. data/Manifest.txt +287 -0
  14. data/{README → README.rdoc} +24 -3
  15. data/Rakefile +196 -0
  16. data/Wakefile +24 -0
  17. data/build.properties +9 -0
  18. data/build.xml +247 -0
  19. data/gm/jquery.js +6002 -0
  20. data/gm/mainx.js +2648 -0
  21. data/gm/sensx.js +135 -0
  22. data/gm/t.js +6 -0
  23. data/gm/x.html +76 -0
  24. data/htmlparser/BrowserTreeBuilder.java +456 -0
  25. data/htmlparser/README +34 -0
  26. data/htmlparser/build.sh +38 -0
  27. data/jsl/jsl +0 -0
  28. data/jsl/jsl.default.conf +129 -0
  29. data/jsl/jsl.exe +0 -0
  30. data/lib/envjs.rb +2 -0
  31. data/lib/envjs/env.js +22 -3
  32. data/lib/envjs/event_loop.js +2 -0
  33. data/lib/envjs/static.js +155 -21
  34. data/licenses/GPL-LICENSE.txt +278 -0
  35. data/licenses/MIT-LICENSE.txt +20 -0
  36. data/src/base64.js +80 -0
  37. data/src/build.js +6 -0
  38. data/src/cruft/bad.html +24 -0
  39. data/src/cruft/dom.js +606 -0
  40. data/src/cruft/element.js +297 -0
  41. data/src/cruft/good.html +30 -0
  42. data/src/cruft/good.js +32 -0
  43. data/src/cruft/internal.js +81 -0
  44. data/src/cruft/parser.js +458 -0
  45. data/src/css/properties.js +293 -0
  46. data/src/css/rule.js +22 -0
  47. data/src/css/sizzle.js +717 -0
  48. data/src/css/stylesheet.js +52 -0
  49. data/src/dom/attr.js +55 -0
  50. data/src/dom/cdatasection.js +31 -0
  51. data/src/dom/characterdata.js +119 -0
  52. data/src/dom/comment.js +30 -0
  53. data/src/dom/doctype.js +9 -0
  54. data/src/dom/document.js +553 -0
  55. data/src/dom/dom.js +134 -0
  56. data/src/dom/element.js +217 -0
  57. data/src/dom/entities.js +273 -0
  58. data/src/dom/exception.js +28 -0
  59. data/src/dom/fragment.js +37 -0
  60. data/src/dom/implementation.js +602 -0
  61. data/src/dom/instruction.js +51 -0
  62. data/src/dom/namednodemap.js +374 -0
  63. data/src/dom/namespace.js +50 -0
  64. data/src/dom/node.js +618 -0
  65. data/src/dom/nodelist.js +195 -0
  66. data/src/dom/parser.js +1207 -0
  67. data/src/dom/text.js +73 -0
  68. data/src/event/event.js +39 -0
  69. data/src/event/mouseevent.js +4 -0
  70. data/src/event/uievent.js +8 -0
  71. data/src/html/a.js +110 -0
  72. data/src/html/anchor.js +80 -0
  73. data/src/html/area.js +57 -0
  74. data/src/html/base.js +26 -0
  75. data/src/html/blockquote-q.js +19 -0
  76. data/src/html/body.js +19 -0
  77. data/src/html/button.js +21 -0
  78. data/src/html/canvas.js +14 -0
  79. data/src/html/col-colgroup.js +49 -0
  80. data/src/html/collection.js +72 -0
  81. data/src/html/cookie.js +151 -0
  82. data/src/html/del-ins.js +25 -0
  83. data/src/html/div.js +28 -0
  84. data/src/html/document.js +359 -0
  85. data/src/html/element.js +380 -0
  86. data/src/html/fieldset.js +19 -0
  87. data/src/html/form.js +484 -0
  88. data/src/html/frame.js +89 -0
  89. data/src/html/frameset.js +25 -0
  90. data/src/html/head.js +44 -0
  91. data/src/html/html.js +0 -0
  92. data/src/html/htmlparser.js +340 -0
  93. data/src/html/iframe.js +26 -0
  94. data/src/html/image.js +0 -0
  95. data/src/html/img.js +62 -0
  96. data/src/html/input-elements.js +307 -0
  97. data/src/html/input.js +65 -0
  98. data/src/html/label.js +26 -0
  99. data/src/html/legend.js +19 -0
  100. data/src/html/link.js +82 -0
  101. data/src/html/map.js +22 -0
  102. data/src/html/meta.js +37 -0
  103. data/src/html/object.js +89 -0
  104. data/src/html/optgroup.js +25 -0
  105. data/src/html/option.js +97 -0
  106. data/src/html/param.js +38 -0
  107. data/src/html/script.js +122 -0
  108. data/src/html/select.js +129 -0
  109. data/src/html/style.js +31 -0
  110. data/src/html/table.js +199 -0
  111. data/src/html/tbody-thead-tfoot.js +91 -0
  112. data/src/html/td-th.js +18 -0
  113. data/src/html/textarea.js +25 -0
  114. data/src/html/title.js +20 -0
  115. data/src/html/tr.js +114 -0
  116. data/src/intro.js +141 -0
  117. data/src/outro.js +70 -0
  118. data/src/parser/html5.detailed.js +10762 -0
  119. data/src/parser/html5.min.js +503 -0
  120. data/src/parser/html5.pretty.js +10815 -0
  121. data/src/parser/intro.js +42 -0
  122. data/src/parser/outro.js +9 -0
  123. data/src/platform/core.js +323 -0
  124. data/src/platform/johnson.js +479 -0
  125. data/src/platform/rhino.js +327 -0
  126. data/src/platform/static/intro.js +41 -0
  127. data/src/platform/static/outro.js +30 -0
  128. data/src/profile/aop.js +238 -0
  129. data/src/profile/profile.js +402 -0
  130. data/src/serializer/xml.js +21 -0
  131. data/src/svg/animatedstring.js +25 -0
  132. data/src/svg/document.js +25 -0
  133. data/src/svg/element.js +22 -0
  134. data/src/svg/locatable.js +17 -0
  135. data/src/svg/rect.js +18 -0
  136. data/src/svg/rectelement.js +24 -0
  137. data/src/svg/stylable.js +49 -0
  138. data/src/svg/svgelement.js +22 -0
  139. data/src/svg/transformable.js +15 -0
  140. data/src/window/css.js +15 -0
  141. data/src/window/dialog.js +16 -0
  142. data/src/window/document.js +28 -0
  143. data/src/window/event.js +262 -0
  144. data/src/window/history.js +62 -0
  145. data/src/window/location.js +138 -0
  146. data/src/window/navigator.js +48 -0
  147. data/src/window/screen.js +53 -0
  148. data/src/window/timer.js +21 -0
  149. data/src/window/window.js +284 -0
  150. data/src/window/xhr.js +127 -0
  151. data/src/xpath/expression.js +49 -0
  152. data/src/xpath/implementation.js +2482 -0
  153. data/src/xpath/result.js +67 -0
  154. data/src/xpath/util.js +551 -0
  155. data/src/xpath/xmltoken.js +149 -0
  156. data/src/xslt/COPYING +34 -0
  157. data/src/xslt/ajaxslt-0.8.1/AUTHORS +1 -0
  158. data/src/xslt/ajaxslt-0.8.1/ChangeLog +136 -0
  159. data/src/xslt/ajaxslt-0.8.1/Makefile +49 -0
  160. data/src/xslt/ajaxslt-0.8.1/README +102 -0
  161. data/src/xslt/ajaxslt-0.8.1/TODO +15 -0
  162. data/src/xslt/ajaxslt-0.8.1/dom.js +566 -0
  163. data/src/xslt/ajaxslt-0.8.1/dom_unittest.html +24 -0
  164. data/src/xslt/ajaxslt-0.8.1/dom_unittest.js +131 -0
  165. data/src/xslt/ajaxslt-0.8.1/simplelog.js +79 -0
  166. data/src/xslt/ajaxslt-0.8.1/test/xpath.html +18 -0
  167. data/src/xslt/ajaxslt-0.8.1/test/xpath_script.js +45 -0
  168. data/src/xslt/ajaxslt-0.8.1/test/xslt.html +58 -0
  169. data/src/xslt/ajaxslt-0.8.1/test/xslt_script.js +33 -0
  170. data/src/xslt/ajaxslt-0.8.1/unittestsuite.html +26 -0
  171. data/src/xslt/ajaxslt-0.8.1/xmltoken.js +149 -0
  172. data/src/xslt/ajaxslt-0.8.1/xmltoken_unittest.html +18 -0
  173. data/src/xslt/ajaxslt-0.8.1/xmltoken_unittest.js +811 -0
  174. data/src/xslt/ajaxslt-0.8.1/xpath_unittest.html +39 -0
  175. data/src/xslt/ajaxslt-0.8.1/xpath_unittest.js +557 -0
  176. data/src/xslt/ajaxslt-0.8.1/xpathdebug.js +234 -0
  177. data/src/xslt/ajaxslt-0.8.1/xslt_unittest.html +138 -0
  178. data/src/xslt/ajaxslt-0.8.1/xslt_unittest.js +68 -0
  179. data/src/xslt/implementation.js +625 -0
  180. data/src/xslt/processor.js +37 -0
  181. data/src/xslt/util.js +449 -0
  182. data/test/foo.html +8 -0
  183. data/test/foo.js +40 -0
  184. data/test/jquery.js +6002 -0
  185. data/test/x.js +1 -0
  186. data/test/y.js +1 -0
  187. metadata +245 -14
data/test/x.js ADDED
@@ -0,0 +1 @@
1
+ debug("**");
data/test/y.js ADDED
@@ -0,0 +1 @@
1
+ debug("**2");
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 1
8
- - 7
9
- version: 0.1.7
7
+ - 2
8
+ - 0
9
+ version: 0.2.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - John Resig
@@ -16,8 +16,8 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-03-02 00:00:00 -08:00
20
- default_executable: envjsrb
19
+ date: 2010-03-11 00:00:00 -08:00
20
+ default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: johnson
@@ -34,15 +34,80 @@ dependencies:
34
34
  version: 2.0.0.pre3
35
35
  type: :runtime
36
36
  version_requirements: *id001
37
- description: Browser environment for javascript interpreters
38
- email: smparkes@smparkes.net
37
+ - !ruby/object:Gem::Dependency
38
+ name: gemcutter
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ segments:
45
+ - 0
46
+ - 4
47
+ - 1
48
+ version: 0.4.1
49
+ type: :development
50
+ version_requirements: *id002
51
+ - !ruby/object:Gem::Dependency
52
+ name: hoe
53
+ prerelease: false
54
+ requirement: &id003 !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ segments:
59
+ - 2
60
+ - 5
61
+ - 0
62
+ version: 2.5.0
63
+ type: :development
64
+ version_requirements: *id003
65
+ description: |-
66
+ A browser environment for javascript interpreters.
67
+
68
+ This is a fork of the env.js project (http://github.com/thatcher/env-js/). See that link for env.js details.
69
+ This fork is based on the Johnson Ruby gem
70
+ (http://github.com/jbarnette/johnson).
71
+ email:
72
+ - jeresig@gmail.com
73
+ - thatcher.christopher@gmail.com
74
+ - smparkes@smparkes.net
39
75
  executables:
40
76
  - envjsrb
77
+ - jquery-1.2.6-test.js
78
+ - jquery-1.3.1-test.js
79
+ - jquery-1.3.2-test.js
80
+ - prototype-1.6.0.3-test.js
81
+ - prototype_1.6.0.3_tmpl.txt
82
+ - test-jquery.sh
83
+ - test-prototype.sh
84
+ - tidy
41
85
  extensions: []
42
86
 
43
87
  extra_rdoc_files:
44
- - README
88
+ - Manifest.txt
89
+ - bin/prototype_1.6.0.3_tmpl.txt
90
+ - licenses/GPL-LICENSE.txt
91
+ - licenses/MIT-LICENSE.txt
92
+ - CHANGELOG.rdoc
93
+ - README.rdoc
45
94
  files:
95
+ - .jslintrbrc
96
+ - .project
97
+ - CHANGELOG.rdoc
98
+ - DTD/xhtml-lat1.ent
99
+ - DTD/xhtml-special.ent
100
+ - DTD/xhtml-symbol.ent
101
+ - DTD/xhtml.soc
102
+ - DTD/xhtml1-frameset.dtd
103
+ - DTD/xhtml1-strict.dtd
104
+ - DTD/xhtml1-transitional.dtd
105
+ - DTD/xhtml1.dcl
106
+ - Makefile
107
+ - Manifest.txt
108
+ - README.rdoc
109
+ - Rakefile
110
+ - Wakefile
46
111
  - bin/envjsrb
47
112
  - bin/jquery-1.2.6-test.js
48
113
  - bin/jquery-1.3.1-test.js
@@ -52,6 +117,19 @@ files:
52
117
  - bin/test-jquery.sh
53
118
  - bin/test-prototype.sh
54
119
  - bin/tidy
120
+ - build.properties
121
+ - build.xml
122
+ - gm/jquery.js
123
+ - gm/mainx.js
124
+ - gm/sensx.js
125
+ - gm/t.js
126
+ - gm/x.html
127
+ - htmlparser/BrowserTreeBuilder.java
128
+ - htmlparser/README
129
+ - htmlparser/build.sh
130
+ - jsl/jsl
131
+ - jsl/jsl.default.conf
132
+ - jsl/jsl.exe
55
133
  - lib/envjs.rb
56
134
  - lib/envjs/env.js
57
135
  - lib/envjs/event_loop.js
@@ -62,6 +140,154 @@ files:
62
140
  - lib/envjs/runtime.rb
63
141
  - lib/envjs/static.js
64
142
  - lib/envjs/tempfile.rb
143
+ - licenses/GPL-LICENSE.txt
144
+ - licenses/MIT-LICENSE.txt
145
+ - src/base64.js
146
+ - src/build.js
147
+ - src/cruft/bad.html
148
+ - src/cruft/dom.js
149
+ - src/cruft/element.js
150
+ - src/cruft/good.html
151
+ - src/cruft/good.js
152
+ - src/cruft/internal.js
153
+ - src/cruft/parser.js
154
+ - src/css/properties.js
155
+ - src/css/rule.js
156
+ - src/css/sizzle.js
157
+ - src/css/stylesheet.js
158
+ - src/dom/attr.js
159
+ - src/dom/cdatasection.js
160
+ - src/dom/characterdata.js
161
+ - src/dom/comment.js
162
+ - src/dom/doctype.js
163
+ - src/dom/document.js
164
+ - src/dom/dom.js
165
+ - src/dom/element.js
166
+ - src/dom/entities.js
167
+ - src/dom/exception.js
168
+ - src/dom/fragment.js
169
+ - src/dom/implementation.js
170
+ - src/dom/instruction.js
171
+ - src/dom/namednodemap.js
172
+ - src/dom/namespace.js
173
+ - src/dom/node.js
174
+ - src/dom/nodelist.js
175
+ - src/dom/parser.js
176
+ - src/dom/text.js
177
+ - src/event/event.js
178
+ - src/event/mouseevent.js
179
+ - src/event/uievent.js
180
+ - src/html/a.js
181
+ - src/html/anchor.js
182
+ - src/html/area.js
183
+ - src/html/base.js
184
+ - src/html/blockquote-q.js
185
+ - src/html/body.js
186
+ - src/html/button.js
187
+ - src/html/canvas.js
188
+ - src/html/col-colgroup.js
189
+ - src/html/collection.js
190
+ - src/html/cookie.js
191
+ - src/html/del-ins.js
192
+ - src/html/div.js
193
+ - src/html/document.js
194
+ - src/html/element.js
195
+ - src/html/fieldset.js
196
+ - src/html/form.js
197
+ - src/html/frame.js
198
+ - src/html/frameset.js
199
+ - src/html/head.js
200
+ - src/html/html.js
201
+ - src/html/htmlparser.js
202
+ - src/html/iframe.js
203
+ - src/html/image.js
204
+ - src/html/img.js
205
+ - src/html/input-elements.js
206
+ - src/html/input.js
207
+ - src/html/label.js
208
+ - src/html/legend.js
209
+ - src/html/link.js
210
+ - src/html/map.js
211
+ - src/html/meta.js
212
+ - src/html/object.js
213
+ - src/html/optgroup.js
214
+ - src/html/option.js
215
+ - src/html/param.js
216
+ - src/html/script.js
217
+ - src/html/select.js
218
+ - src/html/style.js
219
+ - src/html/table.js
220
+ - src/html/tbody-thead-tfoot.js
221
+ - src/html/td-th.js
222
+ - src/html/textarea.js
223
+ - src/html/title.js
224
+ - src/html/tr.js
225
+ - src/intro.js
226
+ - src/outro.js
227
+ - src/parser/html5.detailed.js
228
+ - src/parser/html5.min.js
229
+ - src/parser/html5.pretty.js
230
+ - src/parser/intro.js
231
+ - src/parser/outro.js
232
+ - src/platform/core.js
233
+ - src/platform/johnson.js
234
+ - src/platform/rhino.js
235
+ - src/platform/static/intro.js
236
+ - src/platform/static/outro.js
237
+ - src/profile/aop.js
238
+ - src/profile/profile.js
239
+ - src/serializer/xml.js
240
+ - src/svg/animatedstring.js
241
+ - src/svg/document.js
242
+ - src/svg/element.js
243
+ - src/svg/locatable.js
244
+ - src/svg/rect.js
245
+ - src/svg/rectelement.js
246
+ - src/svg/stylable.js
247
+ - src/svg/svgelement.js
248
+ - src/svg/transformable.js
249
+ - src/window/css.js
250
+ - src/window/dialog.js
251
+ - src/window/document.js
252
+ - src/window/event.js
253
+ - src/window/history.js
254
+ - src/window/location.js
255
+ - src/window/navigator.js
256
+ - src/window/screen.js
257
+ - src/window/timer.js
258
+ - src/window/window.js
259
+ - src/window/xhr.js
260
+ - src/xpath/expression.js
261
+ - src/xpath/implementation.js
262
+ - src/xpath/result.js
263
+ - src/xpath/util.js
264
+ - src/xpath/xmltoken.js
265
+ - src/xslt/COPYING
266
+ - src/xslt/ajaxslt-0.8.1/AUTHORS
267
+ - src/xslt/ajaxslt-0.8.1/ChangeLog
268
+ - src/xslt/ajaxslt-0.8.1/Makefile
269
+ - src/xslt/ajaxslt-0.8.1/README
270
+ - src/xslt/ajaxslt-0.8.1/TODO
271
+ - src/xslt/ajaxslt-0.8.1/dom.js
272
+ - src/xslt/ajaxslt-0.8.1/dom_unittest.html
273
+ - src/xslt/ajaxslt-0.8.1/dom_unittest.js
274
+ - src/xslt/ajaxslt-0.8.1/simplelog.js
275
+ - src/xslt/ajaxslt-0.8.1/test/xpath.html
276
+ - src/xslt/ajaxslt-0.8.1/test/xpath_script.js
277
+ - src/xslt/ajaxslt-0.8.1/test/xslt.html
278
+ - src/xslt/ajaxslt-0.8.1/test/xslt_script.js
279
+ - src/xslt/ajaxslt-0.8.1/unittestsuite.html
280
+ - src/xslt/ajaxslt-0.8.1/xmltoken.js
281
+ - src/xslt/ajaxslt-0.8.1/xmltoken_unittest.html
282
+ - src/xslt/ajaxslt-0.8.1/xmltoken_unittest.js
283
+ - src/xslt/ajaxslt-0.8.1/xpath_unittest.html
284
+ - src/xslt/ajaxslt-0.8.1/xpath_unittest.js
285
+ - src/xslt/ajaxslt-0.8.1/xpathdebug.js
286
+ - src/xslt/ajaxslt-0.8.1/xslt_unittest.html
287
+ - src/xslt/ajaxslt-0.8.1/xslt_unittest.js
288
+ - src/xslt/implementation.js
289
+ - src/xslt/processor.js
290
+ - src/xslt/util.js
65
291
  - test/base64.js
66
292
  - test/call-load-test.js
67
293
  - test/data.js
@@ -87,6 +313,8 @@ files:
87
313
  - test/fixtures/js/external_script.js
88
314
  - test/fixtures/js/script.js
89
315
  - test/fixtures/js/script_error.js
316
+ - test/foo.html
317
+ - test/foo.js
90
318
  - test/html/events.html
91
319
  - test/html/iframe1.html
92
320
  - test/html/iframe1a.html
@@ -100,6 +328,7 @@ files:
100
328
  - test/html/with_js.html
101
329
  - test/index.html
102
330
  - test/java-prototype.js
331
+ - test/jquery.js
103
332
  - test/primary-tests.js
104
333
  - test/prototype-test.js
105
334
  - test/qunit.js
@@ -148,14 +377,16 @@ files:
148
377
  - test/unit/window.js
149
378
  - test/vendor/jQuery/README
150
379
  - test/vendor/prototype-1.6.0.3.js
151
- - README
380
+ - test/x.js
381
+ - test/y.js
152
382
  has_rdoc: true
153
383
  homepage: http://github.com/smparkes/env-js
154
384
  licenses: []
155
385
 
156
386
  post_install_message:
157
387
  rdoc_options:
158
- - --charset=UTF-8
388
+ - --main
389
+ - README.rdoc
159
390
  require_paths:
160
391
  - lib
161
392
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -174,10 +405,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
174
405
  version: "0"
175
406
  requirements: []
176
407
 
177
- rubyforge_project:
408
+ rubyforge_project: envjs
178
409
  rubygems_version: 1.3.6
179
410
  signing_key:
180
411
  specification_version: 3
181
- summary: Browser environment for javascript interpreters
182
- test_files:
183
- - test/scope.rb
412
+ summary: A browser environment for javascript interpreters
413
+ test_files: []
414
+