Update parser.js and path class.

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