Add worker to the html mode

This adds syntax checking (not validating). Based on HTML5 @aredridel parser
disable worker for non html modes, make doctype message info
Merge pull request 1542 'Add worker to the html mode'