Parse id and class from tag name in html tag / element

Signed-off-by: Tom Wright <tom@inflatablecookie.com>