html5support icon indicating copy to clipboard operation
html5support copied to clipboard

Placeholder text is actually submitted with the form

Open brendon opened this issue 13 years ago • 2 comments

Hi there, thanks again for this cool javascript :)

I've found a problem where the placeholder text is actually submitted with the form in IE. This leads to validations not being triggered (e.g. validating the presence of a string). Ideally the form placeholders should be emptied out prior to submission if they have that secret character in them as this is how the placeholder works in other browsers. Is the current behavior by design or is it a bug? :)

brendon avatar Jun 26 '12 00:06 brendon

Hi @brendon,

This behavior is sort of by design (I'm trying to make this the simplest thing that could possibly work). But I think it might be time for html5support to handle this.

So, I'll happily merge a pull request, otherwise I'll probably get to it next month.

amiel avatar Jun 28 '12 18:06 amiel

Hi Amiel, that's all good. In our situation the field was optional so this had undesired effects when it wasn't filled out. I ended up having to use another plugin.

Thanks heaps for getting back to me. :)

Have a great day!

Brendon Muir

On Fri, Jun 29, 2012 at 6:25 AM, Amiel Martin < [email protected]

wrote:

Hi @brendon,

This behavior is sort of by design (I'm trying to make this the simplest thing that could possibly work). But I think it might be time for html5support to handle this.

So, I'll happily merge a pull request, otherwise I'll probably get to it next month.


Reply to this email directly or view it on GitHub: https://github.com/amiel/html5support/issues/5#issuecomment-6637593

brendon avatar Jul 04 '12 01:07 brendon