An attempt at attribute hooks