Optmize selector function for tags, ignore the tag like <style>, <script>.