Version 0.1.7 fixes a number of bugs and improves the parsing performance. A benchmark suite was added and is now triggered as part of every CI build. This release also adds support for Scala.js 1.2.0 and Scala Native 0.4.0-M2.
Migration
Previously, the DOM parser was used in Scala.js which had slightly different semantics depending on the browser. From this release onwards, the internal HTML parser is the default on all platforms.
If you were calling the internal HTML parser, the following changes are necessary:
pine.internal.HtmlParser.fromString(str, xml = false)
→pine.HtmlParser.fromString(str)
pine.internal.HtmlParser.fromString(str, xml = true)
→pine.XmlParser.fromString(str)
Bug fixes
- HtmlParser: Prevent infinite loop when tag is not closed (#61)
- HtmlParser: Parse DOCTYPE case-insensitively (#62)
- Travis CI: Use OpenJDK to fix CI build (#63)
- Fix
Node.removeAll()
(#66, by @mosteli) - Allow spaces before and after equal sign in attribute definition (#70, by @lavrov)
- Attributes: Fix type of
start
attribute on<ol>
(#73)