Fix DOCTYPE matching