return true;
}
public void handleOpenTagNode(ParseContext pContext, TagNode node)
throws IOException {
ReplayParseContext context = (ReplayParseContext) pContext;
if(context.getData(FERRET_DONE_KEY) == null) {
// we haven't emitted yet:
// are we running in post-emit?
if(context.getPhase() == ReplayParseEventDelegator.PHASE_POST_OUTPUT) {
// emit if it is a body tag:
if(node.getTagName().equals("BODY")) {
emit((ReplayParseContext) context,node);
}
} else {
// must be PHASE_PRE_MODIFY: if it's a body tag, emit now:
if(isNotTagAppearingInHead(node)) {
if(node.getTagName().equals(FRAMESET_TAG)) {
// don't put content in pages with a FRAMESET:
context.putData(FERRET_DONE_KEY,"1");
} else {
// and this is a tag that shouldn't be in the HEAD. Emit:
emit((ReplayParseContext) context,node);
}
}