Changes in swift syntax with respect to enums:

Swift is a moving target. Creating an enum from its raw value seems to have changed. The below change makes it work again.

new:

if let type = HTMLNodeType.fromRaw(tagName) {

old:

if let type = HTMLNodeType(rawValue: tagName) {