Added ref tests for the dir attribute. #564
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
http://www.w3.org/html/wg/drafts/html/CR/dom.html#the-dir-attribute
Reftest that exercises many parts of the dir attribute spec.
In particular, Chromium passes and Opera fails the test "If the element is an input element whose type attribute is in the Text, and the dir attribute is in the auto state, if the element's value contains a character of bidirectional character type AL and there is no character of bidirectional character type L anywhere before it in the element's value, then the directionality of the element is 'rtl'".
Both Chromium and Opera fail many tests, including "If the attribute is a directionality-capable attribute and the element's dir attribute is in the auto state, and the first character (in logical order) of the attribute's value that is of bidirectional character type L, AL, or R, is of bidirectional character type AL or R, the directionality of the attribute is 'rtl'."