Bug 846688 - Move IsLTR() from nsHTMLInputElement.cpp to dom::Element. r=bz