"HTMLElement.dir": Misleading info about how the value is determined #14484
Labels
area: DOM/CSSOM
Content:WebAPI
Web API docs
effort: small
This task is a small effort.
help wanted
If you know something about this topic, we would love your help!
MDN URL: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dir
What information was incorrect, unhelpful, or incomplete?
dir
attribute not the API but it doesn't actually specify.dir
attribute does not update the value of this API in the way mentioned. The API simply returns "auto
".What did you expect to see?
Maybe a note explaining that this API can't be used to determine the current direction of an element. You’ll need to use
getComputedStyle
for that.MDN Content page report details
en-us/web/api/htmlelement/dir
The text was updated successfully, but these errors were encountered: