MCPcopy Index your code
hub / github.com/HtmlUnit/htmlunit / acceptChar

Method acceptChar

src/main/java/org/htmlunit/html/HtmlElement.java:870–875  ·  view source on GitHub ↗

Indicates if the provided character can be "typed" in the element. @param c the character @return true if it is accepted

(final char c)

Source from the content-addressed store, hash-verified

868 * @return {@code true} if it is accepted
869 */
870 protected boolean acceptChar(final char c) {
871 // This range is this is private use area
872 // see http://www.unicode.org/charts/PDF/UE000.pdf
873 return (c < '\uE000' || c > '\uF8FF')
874 && (c == ' ' || c == '\t' || c == '\u3000' || c == '\u2006' || !Character.isWhitespace(c));
875 }
876
877 /**
878 * Returns {@code true} if clicking Enter (ASCII 10, or '\n') should submit the enclosed form (if any).

Callers

nothing calls this directly

Calls 1

isWhitespaceMethod · 0.80

Tested by

no test coverage detected