more accurate attributes matching, line breaks and scripts, styles with content matching