[wp-hackers] Weird behaviour with comment_author_url and input placeholders
Otto
otto at ottodestruct.com
Sun Jan 30 15:25:29 UTC 2011
WordPress can't magically discern what the placeholder text is. If
it's being saved, then it's being submitted to the form by the
browser.
-Otto
On Sun, Jan 30, 2011 at 7:21 AM, Lynne Pope <lynne.pope at gmail.com> wrote:
> I would, IF the sites were using any JavaScript for HTML5 support. At this
> stage in their development the only scripts being used are WordPress' jQuery
> & comments scripts.
> Opera 11 has native support for placeholders but is still submitting the
> placeholder text to the database. Opera also has support for checking
> against patterns, but this is overridden by WordPress inputting http:// to
> the url field when the form is submitted.
>
> Other browsers are not recognising the placeholder but its still being sent
> to the database.
>
> Is there a filter I can use to override the default $linktext behaviour to
> make comment_author_url recognise that if its empty then it really is empty?
>
> Lynne
More information about the wp-hackers
mailing list