jsdom + contenteditable?

187 views
Skip to first unread message

Pamela Fox

unread,
Mar 4, 2013, 5:38:14 PM3/4/13
to js...@googlegroups.com
Hi there!

We use jsdom at Coursera for testing our JS libraries and Backbone views.

I'm currently working on testing https://github.com/xing/wysihtml5, and I realized my tests are failing because JSdom is detected as an unsupported browser, due to these 2 tests failing:
hasContentEditableSupport   = "contentEditable" in testElement,
hasEditingApiSupport        = document.execCommand && document.queryCommandSupported && document.queryCommandState

Basically, it doesn't support content-editable and the related functions.

I searched issues on jsdom and didn't see anything relevant to content editable. Has anyone encountered this before? Anyone happen to be working on it already?

I have to admit I haven't looked into the jsdom internals so I don't know the details of how it works and how difficult it would be to patch it to support content editable,
am hoping you folks can help me understand that.

Thanks!

- pamela

Elijah Insua

unread,
Mar 5, 2013, 12:19:27 AM3/5/13
to js...@googlegroups.com
Pamela,

I'd recommend using phantom or similar for this.  We're pretty far away from having the whatwg spec implemented (read: haven't started afaik). 

-- Elijah



- pamela

--
You received this message because you are subscribed to the Google Groups "jsdom" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jsdom+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Pamela Fox

unread,
Mar 5, 2013, 1:15:02 AM3/5/13
to js...@googlegroups.com
Okay, thanks for the fast and honest response! We'll probably hold off on testing advanced functionality for now or try to mock out relevant bits, since we haven't integrated Phantom into our testing framework yet.


You received this message because you are subscribed to a topic in the Google Groups "jsdom" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jsdom/G3Mv4OmorWc/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to jsdom+un...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages