I don’t think that "having a pseudo-element" (and only one!) should be a property of DOM nodes. It’s box/frame generation that checks whether a box should be created for any pseudo-element.