Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
rbri committed Nov 4, 2024
1 parent f9af348 commit db185be
Showing 1 changed file with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

import static org.htmlunit.BrowserVersionFeatures.HTMLBASEFONT_END_TAG_FORBIDDEN;

import org.htmlunit.BrowserVersion;
import org.htmlunit.html.DomNode;
import org.htmlunit.html.HtmlSpan;
import org.htmlunit.javascript.configuration.JsxClass;
Expand Down Expand Up @@ -51,15 +50,8 @@ public void jsConstructor() {
@Override
public void setDomNode(final DomNode domNode) {
super.setDomNode(domNode);
final BrowserVersion browser = getBrowserVersion();
if (browser.hasFeature(HTMLBASEFONT_END_TAG_FORBIDDEN)) {
switch (StringUtils.toRootLowerCase(domNode.getLocalName())) {
case "basefont":
endTagForbidden_ = true;
break;
default:
}
}
endTagForbidden_ = getBrowserVersion().hasFeature(HTMLBASEFONT_END_TAG_FORBIDDEN)
&& "basefont".equals(StringUtils.toRootLowerCase(domNode.getLocalName()));
}

/**
Expand Down

0 comments on commit db185be

Please sign in to comment.