@@ -419,7 +419,7 @@ public class HTMLScanner implements XMLDocumentSource, XMLLocator, HTMLComponent
419419 /** Error reporter. */
420420 protected HTMLErrorReporter fErrorReporter ;
421421
422- /** Error reporter . */
422+ /** Encoding translator . */
423423 protected EncodingTranslator fEncodingTranslator ;
424424
425425 /** Doctype declaration public identifier. */
@@ -488,14 +488,10 @@ public class HTMLScanner implements XMLDocumentSource, XMLLocator, HTMLComponent
488488 */
489489 protected final SpecialScanner fSpecialScanner = new SpecialScanner ();
490490
491- /**
492- * Special scanner used script tags.
493- */
491+ /** Special scanner used script tags. */
494492 protected final ScriptScanner fScriptScanner = new ScriptScanner ();
495493
496- /**
497- * Special scanner used script tags.
498- */
494+ /** Special scanner used for plaintext content. */
499495 protected final PlainTextScanner fPlainTextScanner = new PlainTextScanner ();
500496
501497 // temp vars
@@ -1652,7 +1648,7 @@ public interface Scanner {
16521648 * @param complete True if the scanner should not return until scanning is
16531649 * complete.
16541650 *
1655- * @return True if additional scanning is required .
1651+ * @return One of SCAN_TRUE, SCAN_EOF, or SCAN_FALSE indicating the scanning result .
16561652 *
16571653 * @throws IOException Thrown if I/O error occurs.
16581654 */
@@ -2503,11 +2499,11 @@ private void eof() {
25032499 }
25042500
25052501 /**
2506- * Scans the content of <noscript&gr;: it doesn't get parsed but is considered as
2507- * plain text when feature {@link HTMLScanner#PARSE_NOSCRIPT_CONTENT} is set to
2508- * false.
2502+ * Scans the content of <noscript> <noframes>, <noembed& get;, and <iframe>
2503+ * it doesn't get parsed but is considered as plain text
2504+ * when feature {@link HTMLScanner#PARSE_NOSCRIPT_CONTENT} is set to false.
25092505 *
2510- * @param tagName the tag for which content is scanned (one of "/noscript",
2506+ * @param tagNameWithLeadingSlash the tag for which content is scanned (one of "/noscript",
25112507 * "/noframes", "/noembed", "/iframe")
25122508 * @throws IOException on error
25132509 */
@@ -2969,7 +2965,7 @@ else if (c == '>') {
29692965 *
29702966 * @param empty Is used for a second return value to indicate whether the start
29712967 * element tag is empty (e.g. "/>").
2972- * @return ename
2968+ * @return One of SCAN_TRUE, SCAN_FALSE, or SCAN_EOF.
29732969 * @throws IOException in case of io problems
29742970 */
29752971 protected int scanStartElement (final boolean [] empty ) throws IOException {
0 commit comments