HTML Filter: base element is not recognised
Issue #946
resolved
Please consider the following snippet:
<!DOCTYPE html>
<html lang="en">
<head>
<title>This is an example for the <base> element</title>
<base href="https://www.example.com/news/index.html">
</head>
<body>
<p>Visit the <a href="archives.html">archives</a>.</p>
</body>
</html>
The filter crashes with the following exception on extraction:
java.lang.NullPointerException
at net.sf.okapi.filters.abstractmarkup.config.TaggedFilterConfiguration.isRuleType(TaggedFilterConfiguration.java:308)
at net.sf.okapi.filters.abstractmarkup.config.TaggedFilterConfiguration.getElementRuleTypeCandidate(TaggedFilterConfiguration.java:583)
at net.sf.okapi.filters.abstractmarkup.AbstractMarkupFilter.preProcess(AbstractMarkupFilter.java:479)
at net.sf.okapi.filters.html.HtmlFilter.preProcess(HtmlFilter.java:143)
at net.sf.okapi.filters.abstractmarkup.AbstractMarkupFilter.next(AbstractMarkupFilter.java:317)
This is an HTML Living Standard and this is HTML5 Recommendations with more details on which attributes can be supported.
Comments (2)
-
reporter -
reporter - changed status to resolved
The pull request #410 was merged.
- Log in to comment
A related pull request #410 has been opened.