Re: [whatwg] Supporting more address levels in autocomplete

2014-02-25 Thread Jürg Lehni
I think it is dangerous to make any kind of assumption about valid postal 
addresses.

Here's a great list of all kinds of exceptions to rules that programmers tend 
to believe to be true:

(Don't we love rules?)

http://www.mjt.me.uk/posts/falsehoods-programmers-believe-about-addresses/

Jürg

On Feb 22, 2014, at 05:05 , Ian Hickson i...@hixie.ch wrote:

 On Fri, 21 Feb 2014, Kevin Marks wrote:
 On 21 Feb 2014 17:03, Ian Hickson i...@hixie.ch wrote:
 Those names come from vcard - if adding a new one, consider how to 
 model it in vcard too. Note that UK addresses can have this too - eg 
 3 high street, Kenton, Harrow, Middlesex, UK
 
 That's actually a bogus UK address. I'm not sure exactly which town 
 you meant that to be in, but official UK addresses never have more 
 than two region levels, and usually only one (the post town). The 
 only time they have two is when the post town has two streets with the 
 same name.
 
 The real address, where I grew up,  was:
 2 Melbury Road, Kenton, Harrow, Middlesex, HA3 9RA
 
 Today, the address of that building is:
 
   2 Melbury Rd
   Harrow
   HA3 9RA
 
 
 Damn humans, not following specs. Actually UK addresses have a huge 
 amount of leeway, as they are routed by postcode in the main (though I 
 did receive a postcard addressed to Kevin, Sidney, Cambridge once).
 
 The post office will deal with all kinds of stuff, sure. But Web forms 
 only have to accept the formal address format, which in the UK only ever 
 has a street, a locality (sometimes), a post town, and a post code.
 
 -- 
 Ian Hickson   U+1047E)\._.,--,'``.fL
 http://ln.hixie.ch/   U+263A/,   _.. \   _\  ;`._ ,.
 Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'



[whatwg] keygen and X509 client cert mime type

2014-02-25 Thread henry.st...@bblfish.net
Hi,

  The keygen form element does a great job of specifying how the browser
creates a public/private key pair, stores the private key in it's local
keystore. 

When the control's form is submitted, the private key is stored in the local 
keystore,
 and the public key is packaged and sent to the server.

It is clear that the intention is for the server to send back a certificate 
built 
from the public key. What I can't find is what the mime type of the returned 
certificate should be. I have been using `application/x-x509-user-cert` which 
seems to work for Safari, Firefox, Opera . But I think that is not an officially
supported certificate type. application/pkix-cert seems to be that after 
looking it
up on iana.

I ended up posting a bug report for Android on that.
  http://code.google.com/p/android/issues/detail?id=66342

But now I have to check for each browser which is the type all browsers support.
To avoid people having to do this research again and again, perhaps it would
be worth specifying a mime type that all browsers do/must support in the HTML5
spec?

   Henry

Social Web Architect
http://bblfish.net/