MCPcopy Create free account
hub / github.com/HtmlUnit/htmlunit / calculateBase

Method calculateBase

src/main/java/org/htmlunit/html/HtmlPage.java:1976–1989  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1974 }
1975
1976 private void calculateBase() {
1977 final List<HtmlElement> baseElements = getDocumentElement().getStaticElementsByTagName("base");
1978
1979 base_ = null;
1980 for (final HtmlElement baseElement : baseElements) {
1981 if (baseElement instanceof HtmlBase base) {
1982 if (base_ != null) {
1983 notifyIncorrectness("Multiple 'base' detected, only the first is used.");
1984 break;
1985 }
1986 base_ = base;
1987 }
1988 }
1989 }
1990
1991 /**
1992 * Loads the content of the contained frames. This is done after the page is completely loaded, to allow script

Callers 2

notifyNodeAddedMethod · 0.95
notifyNodeRemovedMethod · 0.95

Calls 3

getDocumentElementMethod · 0.95
notifyIncorrectnessMethod · 0.80

Tested by

no test coverage detected