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

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

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Thu, 01 Jun 2006 12:25:31 +1000
Message-ID: <447E501B.8070608@lachy.id.au>
L. David Baron wrote:
> We might want to use the accept attribute in the future to indicate what
> types of content can be sent, and thus what types of input the user
> agent should allow.  Overloading that to get a boolean for whether
> spellchecking should be enabled seems broken.

AIUI, the accept attribute is just describing what type of input to 
allow.  In this example, when text/plain is specified, the UA has just 
automatically determined that spell checking would be helpful for the 
user.  Similarly, if text/html, application/javascript or */*+xml were 
specified, the browser could provide syntax checking.

I don't think the spec should explicitly define type="text/plain" as 
meaning UAs should provide spell checking, it can just provide that as 
an example of something a UA can do with it.

What should the UA do with accept="text/plain;charset=X", where X is 
some charset that potentially differs from the page's encoding?

e.g. if the page were served as text/html;charset=UTF-8 and contained
<input type="text" accept="text/plain;charset=ISO-8859-1">

Then how would that interact with <form accept-charset="X">?

-- 
Lachlan Hunt
http://lachy.id.au/
Received on Wednesday, 31 May 2006 19:25:31 UTC

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