[Webkit-unassigned] [Bug 9947] REGRESSION: document.dir can't be set in <head> and has no default value

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Sun Jul 16 06:29:08 PDT 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=9947





------- Comment #8 from ddkilzer at kilzer.net  2006-07-16 06:29 PDT -------
Created an attachment (id=9484)
 --> (http://bugzilla.opendarwin.org/attachment.cgi?id=9484&action=view)
Interactive test case

This is an interactive test case that lets you set values on the document.dir
and document.body.dir properties.  Testing in Firefox 1.5.0.5rc3 and MSIE 6, I
found some interesting behavior:

- In both Firefox and MSIE, body.dir overrides document.dir, and they are
independent values.  In ToT WebKit, the values are linked together (there is no
separate document.dir property since its implementation references body.dir).
- MSIE allows the document.dir property to be set to an empty string, but
retains the last valid value internally.  This makes it impossible to know what
the actual direction is from JavaScript if document.dir is set, then cleared.
- The initial value of document.dir is empty in MSIE, but it behaves as if it
were set to 'ltr' internally.
- Firefox has an initial value of 'ltr' in document.dir, and only allows valid
values to be set on it.  It can never be the empty string.
- Both MSIE and Firefox allow body.dir to be set to an empty string.


-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list