Ignore text node contents in containers that are not supposed to contain text