while (searchElem != null) {
if (searchElem.tagName().equals(ExtNodeConstants.SNIPPET_NODE_TAG)) {
blockingParentId = searchElem.attr(ExtNodeConstants.ATTR_SNIPPET_REF);
break;
} else {
searchElem = searchElem.parent();
}
}
elem.attr(ExtNodeConstants.SNIPPET_NODE_ATTR_BLOCK, blockingParentId);
// TODO should we replace the blocked element to a dummy place
// holder element to avoid being rendered by parent snippets