Discussion:
SpiderMonkey and MockDOM Issues
Kaleb Hornsby
2010-10-06 17:25:38 UTC
Permalink
I am running Ubuntu and have just discovered MochiKit in the
repositories. I attempted to start it with smjs, but I ran into an
error. I apparently needed MochiKit.MockDOM. I found it [online] [1]
on another site than mochikit's because their track server is down.
This seemed rather old. Sure enough, though, I loaded mockdom.js and
then loaded mochikit.js and it solved the error, but created another.

Sample output:

$ js
js> load('MochiKit.js')
MochiKit.js:3506: TypeError: this._document has no properties
js> load('MockDOM.js')
js> load('MochiKit.js')
MochiKit.js:4323: ReferenceError: navigator is not defined
js>

Does somebody have a more recent version of mockdom that works with
mochikit?

[1]: http://bknr.net/trac/browser/trunk/projects/quickhoney/website/static/MochiKit/MockDOM.js?rev=2828
--
You received this message because you are subscribed to the Google Groups "MochiKit" group.
To post to this group, send email to ***@googlegroups.com.
To unsubscribe from this group, send email to mochikit+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mochikit?hl=en.
Bob Ippolito
2010-10-07 11:54:26 UTC
Permalink
No idea what you're trying to do but it sounds like whoever packaged
this with Ubuntu did the wrong thing.

Surely there must be an up to date mirror of mochikit on github or
something that can be used until service is restored.
Post by Kaleb Hornsby
I am running Ubuntu and have just discovered MochiKit in the
repositories. I attempted to start it with smjs, but I ran into an
error. I apparently needed MochiKit.MockDOM. I found it [online] [1]
on another site than mochikit's because their track server is down.
This seemed rather old. Sure enough, though, I loaded mockdom.js and
then loaded mochikit.js and it solved the error, but created another.
   $ js
   js> load('MochiKit.js')
   MochiKit.js:3506: TypeError: this._document has no properties
   js> load('MockDOM.js')
   js> load('MochiKit.js')
   MochiKit.js:4323: ReferenceError: navigator is not defined
   js>
Does somebody have a more recent version of mockdom that works with
mochikit?
[1]: http://bknr.net/trac/browser/trunk/projects/quickhoney/website/static/MochiKit/MockDOM.js?rev=2828
--
You received this message because you are subscribed to the Google Groups "MochiKit" group.
For more options, visit this group at http://groups.google.com/group/mochikit?hl=en.
--
You received this message because you are subscribed to the Google Groups "MochiKit" group.
To post to this group, send email to ***@googlegroups.com.
To unsubscribe from this group, send email to mochikit+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mochikit?hl=en.
Kaleb Hornsby
2010-10-07 13:21:19 UTC
Permalink
Since MochiKit makes JavaScript a more robust programming language, I
am trying to use both to do some server side programming. That's why
MochiKit provides a MockDOM. I think that overall, it should not be
coupled to the DOM at all.
Post by Bob Ippolito
No idea what you're trying to do but it sounds like whoever packaged
this with Ubuntu did the wrong thing.
Surely there must be an up to date mirror of mochikit on github or
something that can be used until service is restored.
Post by Kaleb Hornsby
I am running Ubuntu and have just discovered MochiKit in the
repositories. I attempted to start it with smjs, but I ran into an
error. I apparently needed MochiKit.MockDOM. I found it [online] [1]
on another site than mochikit's because their track server is down.
This seemed rather old. Sure enough, though, I loaded mockdom.js and
then loaded mochikit.js and it solved the error, but created another.
   $ js
   js> load('MochiKit.js')
   MochiKit.js:3506: TypeError: this._document has no properties
   js> load('MockDOM.js')
   js> load('MochiKit.js')
   MochiKit.js:4323: ReferenceError: navigator is not defined
   js>
Does somebody have a more recent version of mockdom that works with
mochikit?
[1]:http://bknr.net/trac/browser/trunk/projects/quickhoney/website/static...
--
You received this message because you are subscribed to the Google Groups "MochiKit" group.
For more options, visit this group athttp://groups.google.com/group/mochikit?hl=en.
--
You received this message because you are subscribed to the Google Groups "MochiKit" group.
To post to this group, send email to ***@googlegroups.com.
To unsubscribe from this group, send email to mochikit+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mochikit?hl=en.
Per Cederberg
2010-10-07 13:31:23 UTC
Permalink
When svn.mochikit.com is back up you can easily create your own
packaged version without any of the DOM packages. Don't know if any of
the magic initialization code in MochiKit uses the navigator, window
or document objects, but I guess they should detect if they are
missing. Otherwise we have a bug that should be fixed.

Let us know how it goes with a more minimal version of MochiKit,
preferably customized from the special download site.

Cheers,

/Per
Post by Kaleb Hornsby
Since MochiKit makes JavaScript a more robust programming language, I
am trying to use both to do some server side programming. That's why
MochiKit provides a MockDOM. I think that overall, it should not be
coupled to the DOM at all.
Post by Bob Ippolito
No idea what you're trying to do but it sounds like whoever packaged
this with Ubuntu did the wrong thing.
Surely there must be an up to date mirror of mochikit on github or
something that can be used until service is restored.
Post by Kaleb Hornsby
I am running Ubuntu and have just discovered MochiKit in the
repositories. I attempted to start it with smjs, but I ran into an
error. I apparently needed MochiKit.MockDOM. I found it [online] [1]
on another site than mochikit's because their track server is down.
This seemed rather old. Sure enough, though, I loaded mockdom.js and
then loaded mochikit.js and it solved the error, but created another.
   $ js
   js> load('MochiKit.js')
   MochiKit.js:3506: TypeError: this._document has no properties
   js> load('MockDOM.js')
   js> load('MochiKit.js')
   MochiKit.js:4323: ReferenceError: navigator is not defined
   js>
Does somebody have a more recent version of mockdom that works with
mochikit?
[1]:http://bknr.net/trac/browser/trunk/projects/quickhoney/website/static...
--
You received this message because you are subscribed to the Google Groups "MochiKit" group.
For more options, visit this group athttp://groups.google.com/group/mochikit?hl=en.
--
You received this message because you are subscribed to the Google Groups "MochiKit" group.
For more options, visit this group at http://groups.google.com/group/mochikit?hl=en.
--
You received this message because you are subscribed to the Google Groups "MochiKit" group.
To post to this group, send email to ***@googlegroups.com.
To unsubscribe from this group, send email to mochikit+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mochikit?hl=en.
Bob Ippolito
2010-10-07 17:12:59 UTC
Permalink
MochiKit provides MockDOM so that some tests can be run without a full
browser environment. It does not exist for server-side programming
purposes, it was built before that was a really sensible thing to do.
Post by Kaleb Hornsby
Since MochiKit makes JavaScript a more robust programming language, I
am trying to use both to do some server side programming. That's why
MochiKit provides a MockDOM. I think that overall, it should not be
coupled to the DOM at all.
Post by Bob Ippolito
No idea what you're trying to do but it sounds like whoever packaged
this with Ubuntu did the wrong thing.
Surely there must be an up to date mirror of mochikit on github or
something that can be used until service is restored.
Post by Kaleb Hornsby
I am running Ubuntu and have just discovered MochiKit in the
repositories. I attempted to start it with smjs, but I ran into an
error. I apparently needed MochiKit.MockDOM. I found it [online] [1]
on another site than mochikit's because their track server is down.
This seemed rather old. Sure enough, though, I loaded mockdom.js and
then loaded mochikit.js and it solved the error, but created another.
   $ js
   js> load('MochiKit.js')
   MochiKit.js:3506: TypeError: this._document has no properties
   js> load('MockDOM.js')
   js> load('MochiKit.js')
   MochiKit.js:4323: ReferenceError: navigator is not defined
   js>
Does somebody have a more recent version of mockdom that works with
mochikit?
[1]:http://bknr.net/trac/browser/trunk/projects/quickhoney/website/static...
--
You received this message because you are subscribed to the Google Groups "MochiKit" group.
For more options, visit this group athttp://groups.google.com/group/mochikit?hl=en.
--
You received this message because you are subscribed to the Google Groups "MochiKit" group.
For more options, visit this group at http://groups.google.com/group/mochikit?hl=en.
--
You received this message because you are subscribed to the Google Groups "MochiKit" group.
To post to this group, send email to ***@googlegroups.com.
To unsubscribe from this group, send email to mochikit+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mochikit?hl=en.
Loading...