Skip to content

Conversation

@ashawley
Copy link
Member

Fixes #259.

This one-line change seems low enough risk that it could be included in the next bug-fix release.

@ashawley ashawley added this to the 1.1.1 milestone Sep 21, 2018
Make characters, including whitespace, after the `html' identifier in
<!DOCTYPE html> be optional.  Otherwise, the following errors are
emitted:

    file.xml:2:15: whitespace expected<html xmlns="http://www.w3.org/1999/xhtml">              ^
    file.xml:2:15: document must contain exactly one element

And a java.lang.NullPointerException is thrown.

Unfortunately, testing with Source.fromString doesn't reproduce the
NullPointerException that occurs with Source.fromFile.
@ashawley ashawley merged commit 72b1c11 into scala:master Sep 26, 2018
@ashawley ashawley deleted the fix-html5-npe branch September 26, 2018 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

XhtmlParser throws java.lang.NullPointerException with valid doctype

1 participant