Bug 902363: factorize `setTextContent` to fix `localizeElement`
Merge pull request #11397 from fabi1cazenave/localizeShouldNotClearAll-bug902363

Bug 902363: [mozL10n] factorize `setTextContent` to fix `localizeElement`, r=julienw