Comments (5)
That isn't working because GitHub doesn't let you hotlink the raw javascript like that. Use this instead: http://cdn.matthewphillips.info/libs/syn/0.0.2/syn.js * note that this is my personal computer in my basement so don't abuse :)
from syn.
I created a new fiddle working the way you want it to work http://jsfiddle.net/mCqbC/1/.
Note that you need to put the second and third type
s in callbacks. Syn doesn't operate on a queue.
If you're looking for a new testing framework you should use FuncUnit, which uses Syn. FuncUnit uses a queue so you can write code like:
F('#para_1').type('great');
F('#para_1').type('\b');
F('#para_1').type('\b');
And it will perform those actions sequentially. It's pretty amazing, you should check it out.
from syn.
Going to close this as there doesn't appear to be a bug. You're correct that Syn treats contenteditable elements just like an input or textarea. If you'd like to see it be able to do more stuff with contenteditable like type into an element nested within a contenteditable submit another issue so we can discuss just that part. Would need a good API for doing that.
from syn.
Fair! :) Sorry about this, my example seems to have confused the issue somewhat. The issue was that it couldn't modify the original content. It doesn't seem to have awareness or use the insertion point. Thanks very much for your input. I've seen FuncUnit while I was investigating Syn. Does it work with the insertion point?
from syn.
Not quite sure what you mean. Do you have Skype? We can talk through it. Email me [email protected]
from syn.
Related Issues (20)
- Version inconsistency? HOT 2
- Uncaught error when run in browser extension
- An in-range update of steal is breaking the build 🚨 HOT 2
- An in-range update of jshint is breaking the build 🚨 HOT 2
- An in-range update of steal-tools is breaking the build 🚨 HOT 4
- Add the “key” property to events HOT 1
- inconsistent syn downloads from github
- Syn 1.0
- Syn 1.0 - ESLint
- Syn 1.0 - Publish 1.0.0-pre.0 HOT 1
- Syn 1.0 - CI passing
- Syn 1.0 - Make sure it works in all browsers again HOT 1
- Syn 1.0 - Mocha & webpack setup
- Syn 1.0 - Jest setup
- Syn 1.0 - Finish API documentation
- Syn 1.0 - ESM build
- keyCode is not mapped correctly when capital character is given
- Syn::focus() dispatch some unwanted events, it closes popup HOT 1
- `syn.type()` with `[escape]` string does press escape, but also appends `escape` text HOT 1
- `syn.type()` with `[end]` does not support `input` tag
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from syn.