Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Add type="email" to email input
This may be an unnecessary question, I just want to know if there’s a way to change the type attribute of the commentform’s input tag, so intead of:
<input type="text" id="email" class="comment_email_input" size="25" name="email" value="">
It shows:
<input type="email" id="email" class="comment_email_input" size="25" name="email" value="">
I’ve been looking everywhere but couldn’t find anything yet, so I’m asking here.
Offline
Re: Add type="email" to email input
Are you going for HTML5 draft? In current HTML4 and XHMTL there is no such value.
Anyhow, you could try rah_replace. Something like:
<txp:rah_replace from="<input type=""text""" to="<input type=""email""">
<txp:comment_email_input />
</txp:rah_replace>
Offline
Re: Add type="email" to email input
Yes I’m going for HTML5 (this was the last thing to do) and thank you!, that worked, now my site is fully HTML5 :P
Offline
Pages: 1