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

Method hasFeature

src/main/java/org/htmlunit/html/DomNode.java:2144–2146  ·  view source on GitHub ↗

INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK. Helper for a common call sequence. @param feature the feature to check @return true if the currently emulated browser has this feature.

(final BrowserVersionFeatures feature)

Source from the content-addressed store, hash-verified

2142 * @return {@code true} if the currently emulated browser has this feature.
2143 */
2144 public boolean hasFeature(final BrowserVersionFeatures feature) {
2145 return getPage().getWebClient().getBrowserVersion().hasFeature(feature);
2146 }
2147
2148 private static final class CheckErrorHandler implements CSSErrorHandler {
2149 private CSSParseException error_;

Callers 15

ScreenMethod · 0.45
WebWindowImplMethod · 0.45
getComputedStyleMethod · 0.45
addDefaultHeadersMethod · 0.45
doTypeMethod · 0.45
getValueMethod · 0.45
isValidMethod · 0.45
clickMethod · 0.45

Calls 3

getPageMethod · 0.95
getWebClientMethod · 0.65
getBrowserVersionMethod · 0.45

Tested by

no test coverage detected