W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2006

[whatwg] <input type="text" accept="">

From: Robert Gręsdal <mail@robbiegee.com>
Date: Sun, 11 Jun 2006 00:21:38 +0200
Message-ID: <op.taya2cs7qngfkz@pappas-pc.lan>
On Fri, 09 Jun 2006 03:49:50 +0200, Ian Hickson <ian at hixie.ch> wrote:

> I don't think it's an option because:
>
>    <input type="text" required maxlength="80" name="subject"
>           spellcheck list="subjects" value="Hey there"
>           inputmode="user startUpper">
>
> ...or:
>
>    <input type="text" required name="formula" spellcheck="math"
>           inputmode="math" highlight="math" auto-evaluate>
>
> ...or:
>
>    <textarea name="source" rows="80" spellcheck="off" autoindent="C++"
>              highlight="C++" auto-evaluate="off">
>
> ...gets out of hand very fast.
>



How about something like cascading behaviour sheets?

<style type="text/cbs">
#first-name {
	inputmode: user startUpper;
	spellcheck: enabled;
}
.cplusplus {
	spellcheck: disabled;
	autoindent: C++;
	highlight: C++;
	auto-evaluate: disabled;
}
.math {
	spellcheck: math;
	inputmode: math;
	highlight: math;
	auto-evaluate: enabled;
}
</style>


I'd hate to have to specify all those attributes to every single input  
field for sure.


By the way - Hello everyone, this is my first post to the list.
- Robert Gr?sdal
Received on Saturday, 10 June 2006 15:21:38 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:27 UTC