dalekjs / dalek-internal-actions

[unmaintained] DalekJS internal module for browser actions
6 stars 0 forks source link

.type() hangs when invoking with a number instead of text #10

Open icoloma opened 11 years ago

icoloma commented 11 years ago

Triggered by my own mistake while testing a numeric field:

.type('[name="my_number_field"]', 1)

Will hang dalek and the test will not end. Notice the missing quotes on the number.

Tested with Dalek cli 0.0.2 and local 0.0.6 on Linux.

asciidisco commented 11 years ago

Okay. Numbers do not seem to be allowed by the spec. Nevertheless, I will add an auto converter to dalek, that converts all numbers to strings.