Swapping all attributes & classes for one without hyphens or camelcase.  This seems to make everything work predictably, but I'm still not sure why hyphens are not allowed in names.