W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > February 2012

[Bug 15291] Allow textarea@pattern (input@pattern is specced already so why not)

From: <bugzilla@jessica.w3.org>
Date: Wed, 15 Feb 2012 20:02:47 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1Rxl3v-0002wc-L3@jessica.w3.org>

--- Comment #4 from Mathias Bynens <mathias@qiwi.be> 2012-02-15 20:02:47 UTC ---
Pardon my ignorance, but what’s the harm in adding `textarea@pattern`? Several
valid use cases have been presented in comment #1 and comment #2.

FWIW, I just ran into some more cases where `textarea@pattern` would’ve been
very welcome:

* validating binary input in groups of 8 bits: `pattern="([01]{8})*"`
* extended ASCII input: `pattern="[\x00-\xff]*"`

I needed these for a purely client-side web app:
http://mothereff.in/binary-ascii I ended up manually validating the value
through JavaScript, adding `class=invalid` to <textarea>s with invalid input.

Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Wednesday, 15 February 2012 20:02:53 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 16:31:26 UTC