dirname
Newly available since 2023-08-01
The dirname
attribute of <textarea>
and <input>
HTML elements includes the field's writing direction as form data on submission.
Learning resources on MDN
No MDN documentation found. You can search for the feature on MDN. If you believe that MDN has no documentation about this feature, you can open an issue on MDN's GitHub repository.Browser support
- Chrome 17 Released on 2012-02-08
- Chrome Android 18 Released on 2012-06-27
- Edge 79 Released on 2020-01-15
- Firefox 116 Released on 2023-08-01
- Firefox for Android 116 Released on 2023-08-01
- Safari 6 Released on 2012-07-25
- Safari on iOS 6 Released on 2012-09-10
Specifications
- HTML (#attr-fe-dirname), from HTML Workstream (WHATWG).
View web-platform-tests results for this feature - View the feature source file (dist) - Edit the feature - Report an issue about this feature