fix hasTextChildren, disregard certain tags (e.g. <script>)
avoid repetition of text
avoid small elements
last commit before branch switch