Properly detect data-dfn-type on ancestors (competing with class).