Update parser.js

This fixes parsing style from elements that have class="" attributes.
Has seen in #1290 issue