hixie: Add a note about why you would persist dir='' in history traversal. (whatwg r6339)

hixie: Add a note about why you would persist dir='' in history
traversal. (whatwg r6339)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.5066&r2=1.5067&f=h
http://html5.org/tools/web-apps-tracker?from=6338&to=6339

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.5066
retrieving revision 1.5067
diff -u -d -r1.5066 -r1.5067
--- Overview.html 29 Jul 2011 01:41:56 -0000 1.5066
+++ Overview.html 29 Jul 2011 23:36:47 -0000 1.5067
@@ -44526,7 +44526,12 @@
   history by that document.<p><dfn id="an-entry-with-persisted-user-state">An entry with persisted user state</dfn> is one that also
   has user-agent defined state. This specification does not specify
   what kind of state can be stored.<p class="example">For example, some user agents might want to
-  persist the scroll position, or the values of form controls.<p>Entries that consist of <a href="#state-object" title="state object">state
+  persist the scroll position, or the values of form controls.<p class="note">User agents that persist the value of form controls
+  are encouraged to also persist their directionality (the value of
+  the element's <code title="attr-dir"><a href="#the-dir-attribute">dir</a></code> attribute). This
+  prevents values from being displayed incorrectly after a history
+  traversal when the user had originally entered the values with an
+  explicit, non-default directionality.<p>Entries that consist of <a href="#state-object" title="state object">state
   objects</a> share the same <code><a href="#document">Document</a></code> as the entry for
   the page that was active when they were added.<p>Contiguous entries that differ just by fragment identifier also
   share the same <code><a href="#document">Document</a></code>.<p class="note">All entries that share the same

Received on Friday, 29 July 2011 23:37:42 UTC