Updated requiredContent for class attribute to match standards

There was a comment before "// Random text like 'xyz' will check if all are allowed."

I interpret this to mean it was intentional but I cannot understand why — inserting random text like 'xyz' will break the expected behaviour of allowedContent. Why should the class attribute only be accessible if all content is allowed? This change matches how the other attributes are handled.