#12947 closed defect (invalid)
Error popup shows too fast when insert URL begin with 'http://'
Reported by: | hengly | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | tbd |
Component: | Editor | Version: | 1.6.1 |
Keywords: | dojo, editor, create link | Cc: | Douglas Hays |
Blocked By: | Blocking: |
Description
1.Visit http://demos.dojotoolkit.org/demos/editor/
2.Clicking the 'Create Link'
3.Type the words http://www.aol.com
Expected: No error popup Actual: Error note displays when I type the word http://
Attachments (1)
Change History (4)
Changed 10 years ago by
Attachment: | error_popup.jpg added |
---|
comment:1 Changed 10 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
This isn't a bug. It's a validation input field and it is validating as you type. http:// isn't valid, it's incomplete, and is flagged as such. This is to ensure that you cannot set invalid values, as invalid fields directly control the state of the insert button.
Working as designed.
comment:2 Changed 10 years ago by
Cc: | Douglas Hays added |
---|
Doug, shouldn't the partially completed regex code be kicking into effect here, so it doesn't flag prematurely?
comment:3 Changed 10 years ago by
The LinkDialog? plugin is doing its own regexp validation and causing the warning popup. The ValidationTextBox? kept its default regexp=.* since it was never specified. If the partial regexp code is working properly, then the template should have been specified instead as:
input dojoType='dijit.form.ValidationTextBox' required='true' regExp='${urlRegExp}'
I suspect that the urlRegExp is incomplete and doesn't include the mailto protocol and thus the builtin partial regexp code won't work until this is also fixed in the plugin.
Error popup