File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
src/main/java/org/htmlunit/javascript/host/html Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change 16
16
17
17
import static org .htmlunit .BrowserVersionFeatures .HTMLBASEFONT_END_TAG_FORBIDDEN ;
18
18
19
- import org .htmlunit .BrowserVersion ;
20
19
import org .htmlunit .html .DomNode ;
21
20
import org .htmlunit .html .HtmlSpan ;
22
21
import org .htmlunit .javascript .configuration .JsxClass ;
@@ -51,15 +50,8 @@ public void jsConstructor() {
51
50
@ Override
52
51
public void setDomNode (final DomNode domNode ) {
53
52
super .setDomNode (domNode );
54
- final BrowserVersion browser = getBrowserVersion ();
55
- if (browser .hasFeature (HTMLBASEFONT_END_TAG_FORBIDDEN )) {
56
- switch (StringUtils .toRootLowerCase (domNode .getLocalName ())) {
57
- case "basefont" :
58
- endTagForbidden_ = true ;
59
- break ;
60
- default :
61
- }
62
- }
53
+ endTagForbidden_ = getBrowserVersion ().hasFeature (HTMLBASEFONT_END_TAG_FORBIDDEN )
54
+ && "basefont" .equals (StringUtils .toRootLowerCase (domNode .getLocalName ()));
63
55
}
64
56
65
57
/**
You can’t perform that action at this time.
0 commit comments