Question

I'm trying to use a couple of these newfangled HTML5 form attributes, and the placeholder attribute seemed to be a good match to get the magic going.

It works pretty good, but Chrome insists to present the whole placeholder text on one line if the textarea is to small. Other browsers like Firefox or rekonq (the only other WebKit browser that I have at my disposal ATM) line-wrap the text.

While the spec talks about linefeeds being forbidden in the placeholder attribute, it says nothing against line wrapping. Is this just something that is for the implementor to decide, is it a Chrome bug, or are the other browsers mistaken?

And, most importantly of course, is there a workaround?

Was it helpful?

Solution

I've filed this as a webkit bug

Next time feel free to do the same. :)

As for a workaround you can try out this and force it to fail feature detection in webkit somehow.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top