you can use `.css('direction')`. it's better because it will indicate either the attribute `dir` and/or the css `direction`. Also it will get the inherited value from parents of the text element other than the body.