diff --git a/src/nu/validator/htmlparser/impl/ErrorReportingTokenizer.java b/src/nu/validator/htmlparser/impl/ErrorReportingTokenizer.java index 9db9e8a7..7494fb28 100644 --- a/src/nu/validator/htmlparser/impl/ErrorReportingTokenizer.java +++ b/src/nu/validator/htmlparser/impl/ErrorReportingTokenizer.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009-2013 Mozilla Foundation + * Copyright (c) 2009-2017 Mozilla Foundation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -413,8 +413,8 @@ private boolean isAstralPrivateUse(int c) { err("Nameless doctype."); } - @Override protected void errConsecutiveHyphens() throws SAXException { - err("Consecutive hyphens did not terminate a comment. \u201C--\u201D is not permitted inside a comment, but e.g. \u201C- -\u201D is."); + @Override protected void errNestedComment() throws SAXException { + err("Saw \u201C