Test for bug 836890
Set AncestorHasDirAuto flag when adding a new text node. Bug 836890, r=ehsan