Spec for anonymous documents extending a class