Intended audience:users, XHTML/HTML coders (using editors or scripting), script developers (PHP, JSP, etc.), CSS coders, Web project managers, and anyone who wants to know whether dirname is supported in browsers.
Updated
These tests check whether a dirname
attribute passes information about the direction of an input
field to the server.
To see the test, click on the link in the left-most column. To see detailed results for a single test, click on a row and look just above the table. The detailed results show the date(s) the test result was recorded, and the version of the browser tested.
Any dependencies are shown in notes above the table, and notes below the table will usually provide any additional useful information, including an explanation of why a result was marked as 'partially successful'. Where the instructions tell you to look for red characters, these characters should be clearly discernable behind the black text of the test – ignore any anti-aliasing 'glow'.
Key:
pass | fail | partially successful |
Links to run tests | Assertions | Gecko Firefox | Blink Chrome | Blink Opera | Webkit Safari | Legacy Edge | IE |
---|---|---|---|---|---|---|---|
dirname, ltr the-dirname-attribute-001.html |
The dir attribute is set to ltr on the input tag. The dirname attribute will cause the direction of the input element to be passed with the form parameters. | fail | pass | pass | pass | fail | fail |
dirname, rtl the-dirname-attribute-002.html |
The dir attribute is set to rtl on the input tag. The dirname attribute will cause the direction of the input element to be passed with the form parameters. | fail | pass | pass | pass | fail | fail |
dirname, inherits ltr the-dirname-attribute-003.html |
The dir attribute is set to ltr on an ancestor of the input tag. The dirname attribute will cause the direction of the input element to be passed with the form parameters. | fail | pass | pass | pass | fail | fail |
dirname, inherits rtl the-dirname-attribute-004.html |
The dir attribute is set to rtl on an ancestor of the input tag. The dirname attribute will cause the direction of the input element to be passed with the form parameters. | fail | pass | pass | pass | fail | fail |
dirname, default the-dirname-attribute-005.html |
No dir attribute is set, so the document is ltr by default. The dirname attribute will cause the direction of the input element to be passed with the form parameters. | fail | pass | pass | pass | fail | fail |
dirname, auto, ltr text the-dirname-attribute-006.html |
The dir attribute is set to auto. If the form field auto-detects ltr direction based on first strong character input, the dirname attribute will cause the direction of the input element to be passed with the form parameters. | fail | pass | pass | pass | fail | fail |
dirname, auto, rtl text the-dirname-attribute-007.html |
The dir attribute is set to auto. If the form field auto-detects rtl direction based on first strong character input, the dirname attribute will cause the direction of the input element to be passed with the form parameters. | fail | pass | pass | pass | fail | fail |
dirname, scripted the-dirname-attribute-008.html |
The dir attribute is set using JavaScript. The dirname attribute will cause the direction of the input element to be passed with the form parameters. | fail | pass | pass | pass | fail | fail |
Spec links for this table: link