WICG / sms-one-time-codes

A way to format SMS messages for use with browser autofill features such as HTML’s autocomplete=one-time-code.
https://wicg.github.io/sms-one-time-codes/
Other
111 stars 12 forks source link

One possible way to handle the nested iframe case. #5

Closed hober closed 3 years ago

hober commented 4 years ago

Fixes #4.

rmondello commented 4 years ago

This all looks good and makes sense to me.

samuelgoto commented 4 years ago

On a related note, on format, I think I generally prefer "@a.com @b.com" (maybe there is an analogy to be made with twitter at-replies) or maybe "@a.com > @b.com" (maybe there is an analogy that can be made with CSS selectors) rather than a new token type (which I was hoping to reserve for new values to be passed to the origins). So, something along the lines of:

@a.com @b.com #1234 $50

That is, from a mental model perspective I have this separation between AUDIENCE : CONTENT in formatting (e.g. "@example.com #18923") and would like to see that cohesion hold over time as we expand both AUDIENCE (e.g. to iframes) and CONTENT (e.g. for payment tokens).

I dunno if that breakdown between AUDIENCE : CONTENT makes sense (and happy to be convinced otherwise), but just wanted to explain my mental model so far :)

hober commented 4 years ago

Note to self: rebase this after #7 lands.