mobl does not generate correct javascript for html ‘textarea’ control unless it is spelled all lower case. Specifically, databinding does not work. For example, the following control:

control minTextArea( s: String) {
    <textArea databind=s />;
}` 

does not show any errors - but fails silently at runtime. However changing to:

control minTextArea( s: String) {
	<textarea databind=s />;
}

works fine.

The problem originates from line 299 in trans/generation/ui.str which tests the input html tag type. The test is evidently case-sensitive, meaning anything other than “textarea” is not matched.

Since HTML5 is not case sensitive this is misleading.

Workaround: ensure tag is lower case.

Submitted by Scott Finnie on 21 January 2013 at 14:50

Log in to post comments