dir/lang proposal

There have been several concerns raised with the current solution for direction:

* Too much complexity for developers
* Not widely supported on platforms yet
* Does not indicate the direction for the notification as a whole
* Does not deal with direction changes within the same piece of text

Going back to a single dir attribute for now makes sense to me,
extending it later once we have some more deployment experience. We
can then provide a specific override for the body text, rather than
have a dir for each piece of text independently.

I think we should do the same for lang. So just have the dictionary
take a dir and lang member for now, extending it later as usage
problems arise.

For error handling I suggest we ignore the lang member and treat the
language as unknown if its value could not be parsed (rather than
throwing).

Thoughts?


-- 
http://annevankesteren.nl/

Received on Tuesday, 17 July 2012 08:40:26 UTC