public class HTMLErrorHandler extends Object implements IErrorHandler
ATTR_VALUE, BEFORE_ATTRNAME, BOM, DOCTYPE_MISSED, FLOATING_ENDTAG, ILLEGAL_ATTRIBUTE, ILLEGAL_CHILD, ILLEGAL_DOCTYPE, ILLEGAL_TOP_ELEMENT, MISC_ERR, STARTTAG_SYNTAX_ERR, SUDDEN_ENDTAG, TAG_NAME, UNKNOWN_ELEMENT| Constructor and Description |
|---|
HTMLErrorHandler() |
public boolean handleError(int code,
IParser parser,
Node errorNode)
throws ParseException,
IOException,
SAXException
node is LINK, STYLE BASE, ISINDEX or META element,
add it to last HEAD element.
node are equal nodes, Changes Context
to its parent and append node to context.
handleError in interface IErrorHandlercode - error typeparser - caller of this handler. This parser's state is easily changed by the methods below.
errorNode a node that causes the error.errorNode - illegal child node.ParseExceptionIOExceptionSAXExceptionIParser.getContext(),
IParser.setContext(org.w3c.dom.Element)