/** * Generates a missing <body> (which creates missing <head> when needed) */ private void forceStartBody() { final QName body = createQName("body"); if (fReportErrors) { fErrorReporter.reportWarning("HTML2006", new Object[]{body.localpart}); } forceStartElement(body, null, synthesizedAugs()); }
fErrorReporter.reportError("HTML2000", null); if (fReportErrors) { String ename = info.qname.rawname; fErrorReporter.reportWarning("HTML2001", new Object[]{ename});
/** Doctype declaration. */ public void doctypeDecl(String rootElementName, String publicId, String systemId, Augmentations augs) throws XNIException { fSeenAnything = true; if (fReportErrors) { if (fSeenRootElement) { fErrorReporter.reportError("HTML2010", null); } else if (fSeenDoctype) { fErrorReporter.reportError("HTML2011", null); } } if (!fSeenRootElement && !fSeenDoctype) { fSeenDoctype = true; if (fDocumentHandler != null) { fDocumentHandler.doctypeDecl(rootElementName, publicId, systemId, augs); } } } // doctypeDecl(String,String,String,Augmentations)
/** Doctype declaration. */ public void doctypeDecl(String rootElementName, String publicId, String systemId, Augmentations augs) throws XNIException { fSeenAnything = true; if (fReportErrors) { if (fSeenRootElement) { fErrorReporter.reportError("HTML2010", null); } else if (fSeenDoctype) { fErrorReporter.reportError("HTML2011", null); } } if (!fSeenRootElement && !fSeenDoctype) { fSeenDoctype = true; if (fDocumentHandler != null) { fDocumentHandler.doctypeDecl(rootElementName, publicId, systemId, augs); } } } // doctypeDecl(String,String,String,Augmentations)
String bname = modifyName("body", fNamesElems); if (fReportErrors) { fErrorReporter.reportWarning("HTML2009", new Object[]{hname,bname});
fErrorReporter.reportWarning("HTML1004", null); fErrorReporter.reportError("HTML1005", new Object[]{name}); fErrorReporter.reportError("HTML1005", new Object[]{name}); if (c == -1 || invalidEntityInAttribute) { if (fReportErrors) { fErrorReporter.reportWarning("HTML1006", new Object[]{name});
/** Doctype declaration. */ public void doctypeDecl(String rootElementName, String publicId, String systemId, Augmentations augs) throws XNIException { fSeenAnything = true; if (fReportErrors) { if (fSeenRootElement) { fErrorReporter.reportError("HTML2010", null); } else if (fSeenDoctype) { fErrorReporter.reportError("HTML2011", null); } } if (!fSeenRootElement && !fSeenDoctype) { fSeenDoctype = true; if (fDocumentHandler != null) { fDocumentHandler.doctypeDecl(rootElementName, publicId, systemId, augs); } } } // doctypeDecl(String,String,String,Augmentations)
String bname = modifyName("body", fNamesElems); if (fReportErrors) { fErrorReporter.reportWarning("HTML2009", new Object[]{hname,bname});
fErrorReporter.reportError("HTML2000", null); if (fReportErrors) { String ename = info.qname.rawname; fErrorReporter.reportWarning("HTML2001", new Object[]{ename});
/** Doctype declaration. */ public void doctypeDecl(String rootElementName, String publicId, String systemId, Augmentations augs) throws XNIException { fSeenAnything = true; if (fReportErrors) { if (fSeenRootElement) { fErrorReporter.reportError("HTML2010", null); } else if (fSeenDoctype) { fErrorReporter.reportError("HTML2011", null); } } if (!fSeenRootElement && !fSeenDoctype) { fSeenDoctype = true; if (fDocumentHandler != null) { fDocumentHandler.doctypeDecl(rootElementName, publicId, systemId, augs); } } } // doctypeDecl(String,String,String,Augmentations)
String ename = modifyName(element.rawname, fNamesElems); String iname = info.qname.rawname; fErrorReporter.reportWarning("HTML2007", new Object[]{ename,iname}); if (fReportErrors) { String iname = info.qname.rawname; fErrorReporter.reportWarning("HTML2008", new Object[]{iname});
fErrorReporter.reportWarning("HTML1004", null); fErrorReporter.reportError("HTML1005", new Object[]{name}); if (c == -1 || invalidEntityInAttribute) { if (fReportErrors) { fErrorReporter.reportWarning("HTML1006", new Object[]{name});
/** Doctype declaration. */ public void doctypeDecl(String rootElementName, String publicId, String systemId, Augmentations augs) throws XNIException { fSeenAnything = true; if (fReportErrors) { if (fSeenRootElement) { fErrorReporter.reportError("HTML2010", null); } else if (fSeenDoctype) { fErrorReporter.reportError("HTML2011", null); } } if (!fSeenRootElement && !fSeenDoctype) { fSeenDoctype = true; if (fDocumentHandler != null) { fDocumentHandler.doctypeDecl(rootElementName, publicId, systemId, augs); } } } // doctypeDecl(String,String,String,Augmentations)
/** * Generates a missing <body> (which creates missing <head> when needed) */ private void forceStartBody() { final QName body = createQName("body"); if (fReportErrors) { fErrorReporter.reportWarning("HTML2006", new Object[]{body.localpart}); } forceStartElement(body, null, synthesizedAugs()); }
fErrorReporter.reportError("HTML2000", null); if (fReportErrors) { String ename = info.qname.rawname; fErrorReporter.reportWarning("HTML2001", new Object[]{ename});
/** Doctype declaration. */ public void doctypeDecl(String rootElementName, String publicId, String systemId, Augmentations augs) throws XNIException { fSeenAnything = true; if (fReportErrors) { if (fSeenRootElement) { fErrorReporter.reportError("HTML2010", null); } else if (fSeenDoctype) { fErrorReporter.reportError("HTML2011", null); } } if (!fSeenRootElement && !fSeenDoctype) { fSeenDoctype = true; if (fDocumentHandler != null) { fDocumentHandler.doctypeDecl(rootElementName, publicId, systemId, augs); } } } // doctypeDecl(String,String,String,Augmentations)
/** * Generates a missing <body> (which creates missing <head> when needed) */ private void forceStartBody() { final QName body = createQName("body"); if (fReportErrors) { fErrorReporter.reportWarning("HTML2006", new Object[]{body.localpart}); } forceStartElement(body, null, synthesizedAugs()); }
fErrorReporter.reportError("HTML2000", null); if (fReportErrors) { String ename = info.qname.rawname; fErrorReporter.reportWarning("HTML2001", new Object[]{ename});
/** Doctype declaration. */ public void doctypeDecl(String rootElementName, String publicId, String systemId, Augmentations augs) throws XNIException { fSeenAnything = true; if (fReportErrors) { if (fSeenRootElement) { fErrorReporter.reportError("HTML2010", null); } else if (fSeenDoctype) { fErrorReporter.reportError("HTML2011", null); } } if (!fSeenRootElement && !fSeenDoctype) { fSeenDoctype = true; if (fDocumentHandler != null) { fDocumentHandler.doctypeDecl(rootElementName, publicId, systemId, augs); } } } // doctypeDecl(String,String,String,Augmentations)
/** * Generates a missing <body> (which creates missing <head> when needed) */ private void forceStartBody() { final QName body = createQName("body"); if (fReportErrors) { fErrorReporter.reportWarning("HTML2006", new Object[]{body.localpart}); } forceStartElement(body, null, synthesizedAugs()); }