Bug 1053629 - Reduce complexity of setTextContent
Merge pull request #22864 from zbraniecki/1053629-simplify-settextcontent

Bug 1053629 - Reduce complexity of setTextContent. r=stas