public function htmlAttributes()
    {
        if ($this->direction() === 'rtl' || $this->direction() !== $this->script()->direction()) {
            return 'lang="' . $this->languageTag() . '" dir="' . $this->direction() . '"';
        } else {
            return 'lang="' . $this->languageTag() . '"';
        }
    }
public function htmlAttributes()
    {
        if ($this->direction() === 'rtl' || $this->direction() !== $this->script()->direction()) {
            return 'lang="' . $this->languageTag() . '" dir="' . $this->direction() . '"';
        } else {
            return 'lang="' . $this->languageTag() . '"';
        }
    }
public function htmlAttributes ( ) { if ( $ this -> direction ( ) === 'rtl' || $ this -> direction ( ) !== $ this -> script ( ) -> direction ( ) ) { return 'lang="' . $ this -> languageTag ( ) . '" dir="' . $ this -> direction ( ) . '"' ; } else { return 'lang="' . $ this -> languageTag ( ) . '"' ; } }
Markup for an HTML element

@return string e.g. lang="ar" dir="rtl"
Markup for an HTML element