CMElementDeclaration dec = CMUtil.getDeclaration(target);
if (dec == null)
return; // cannot validate.
if (!CMUtil.isHTML(dec))
return; // no need to validate
if (!dec.supports(HTMLCMProperties.PROHIBITED_ANCESTORS))
return; // cannot validate.
CMNamedNodeMap prohibited = (CMNamedNodeMap) dec.getProperty(HTMLCMProperties.PROHIBITED_ANCESTORS);
if (prohibited.getLength() <= 0)
return; // no prohibited ancestors.