Skip to content

Fix character reference consumption for consecutive & in text and correct numeric NCR edge handling#172

Closed
Copilot wants to merge 2 commits into
masterfrom
copilot/fix-htmlscanner-character-reference
Closed

Fix character reference consumption for consecutive & in text and correct numeric NCR edge handling#172
Copilot wants to merge 2 commits into
masterfrom
copilot/fix-htmlscanner-character-reference

Fix entity parsing for ampersands and numeric references

5230135
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded May 7, 2026 in 42s

Annotations

Check warning on line 265 in src/test/java/org/htmlunit/cyberneko/GeneralTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this 'public' modifier.

See more on https://sonarcloud.io/project/issues?id=HtmlUnit_htmlunit-neko&issues=AZ4DX779mI3dEVJdoggQ&open=AZ4DX779mI3dEVJdoggQ&pullRequest=172

Check warning on line 171 in src/test/java/org/htmlunit/cyberneko/HTMLUnicodeEntitiesParserTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this 'public' modifier.

See more on https://sonarcloud.io/project/issues?id=HtmlUnit_htmlunit-neko&issues=AZ4DX73mmI3dEVJdoggG&open=AZ4DX73mmI3dEVJdoggG&pullRequest=172

Check warning on line 143 in src/test/java/org/htmlunit/cyberneko/HTMLUnicodeEntitiesParserTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this 'public' modifier.

See more on https://sonarcloud.io/project/issues?id=HtmlUnit_htmlunit-neko&issues=AZ4DX73mmI3dEVJdoggE&open=AZ4DX73mmI3dEVJdoggE&pullRequest=172

Check warning on line 199 in src/test/java/org/htmlunit/cyberneko/HTMLUnicodeEntitiesParserTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this 'public' modifier.

See more on https://sonarcloud.io/project/issues?id=HtmlUnit_htmlunit-neko&issues=AZ4DX73mmI3dEVJdoggI&open=AZ4DX73mmI3dEVJdoggI&pullRequest=172

Check warning on line 47 in src/test/java/org/htmlunit/cyberneko/GeneralTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this 'public' modifier.

See more on https://sonarcloud.io/project/issues?id=HtmlUnit_htmlunit-neko&issues=AZ4DX779mI3dEVJdoggL&open=AZ4DX779mI3dEVJdoggL&pullRequest=172

Check warning on line 115 in src/test/java/org/htmlunit/cyberneko/HTMLUnicodeEntitiesParserTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this 'public' modifier.

See more on https://sonarcloud.io/project/issues?id=HtmlUnit_htmlunit-neko&issues=AZ4DX73mmI3dEVJdoggC&open=AZ4DX73mmI3dEVJdoggC&pullRequest=172

Check warning on line 87 in src/test/java/org/htmlunit/cyberneko/HTMLUnicodeEntitiesParserTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this 'public' modifier.

See more on https://sonarcloud.io/project/issues?id=HtmlUnit_htmlunit-neko&issues=AZ4DX73mmI3dEVJdoggA&open=AZ4DX73mmI3dEVJdoggA&pullRequest=172

Check warning on line 129 in src/test/java/org/htmlunit/cyberneko/HTMLUnicodeEntitiesParserTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this 'public' modifier.

See more on https://sonarcloud.io/project/issues?id=HtmlUnit_htmlunit-neko&issues=AZ4DX73mmI3dEVJdoggD&open=AZ4DX73mmI3dEVJdoggD&pullRequest=172

Check warning on line 173 in src/test/java/org/htmlunit/cyberneko/GeneralTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this 'public' modifier.

See more on https://sonarcloud.io/project/issues?id=HtmlUnit_htmlunit-neko&issues=AZ4DX779mI3dEVJdoggO&open=AZ4DX779mI3dEVJdoggO&pullRequest=172

Check warning on line 136 in src/test/java/org/htmlunit/cyberneko/GeneralTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this 'public' modifier.

See more on https://sonarcloud.io/project/issues?id=HtmlUnit_htmlunit-neko&issues=AZ4DX779mI3dEVJdoggN&open=AZ4DX779mI3dEVJdoggN&pullRequest=172

Check warning on line 90 in src/test/java/org/htmlunit/cyberneko/GeneralTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this 'public' modifier.

See more on https://sonarcloud.io/project/issues?id=HtmlUnit_htmlunit-neko&issues=AZ4DX779mI3dEVJdoggM&open=AZ4DX779mI3dEVJdoggM&pullRequest=172

Check warning on line 332 in src/test/java/org/htmlunit/cyberneko/GeneralTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this 'public' modifier.

See more on https://sonarcloud.io/project/issues?id=HtmlUnit_htmlunit-neko&issues=AZ4DX779mI3dEVJdoggT&open=AZ4DX779mI3dEVJdoggT&pullRequest=172

Check warning on line 101 in src/test/java/org/htmlunit/cyberneko/HTMLUnicodeEntitiesParserTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this 'public' modifier.

See more on https://sonarcloud.io/project/issues?id=HtmlUnit_htmlunit-neko&issues=AZ4DX73mmI3dEVJdoggB&open=AZ4DX73mmI3dEVJdoggB&pullRequest=172

Check warning on line 242 in src/test/java/org/htmlunit/cyberneko/GeneralTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this 'public' modifier.

See more on https://sonarcloud.io/project/issues?id=HtmlUnit_htmlunit-neko&issues=AZ4DX779mI3dEVJdoggP&open=AZ4DX779mI3dEVJdoggP&pullRequest=172

Check warning on line 288 in src/test/java/org/htmlunit/cyberneko/GeneralTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this 'public' modifier.

See more on https://sonarcloud.io/project/issues?id=HtmlUnit_htmlunit-neko&issues=AZ4DX779mI3dEVJdoggR&open=AZ4DX779mI3dEVJdoggR&pullRequest=172

Check warning on line 157 in src/test/java/org/htmlunit/cyberneko/HTMLUnicodeEntitiesParserTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this 'public' modifier.

See more on https://sonarcloud.io/project/issues?id=HtmlUnit_htmlunit-neko&issues=AZ4DX73mmI3dEVJdoggF&open=AZ4DX73mmI3dEVJdoggF&pullRequest=172

Check warning on line 59 in src/test/java/org/htmlunit/cyberneko/HTMLUnicodeEntitiesParserTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this 'public' modifier.

See more on https://sonarcloud.io/project/issues?id=HtmlUnit_htmlunit-neko&issues=AZ4DX73mmI3dEVJdogf-&open=AZ4DX73mmI3dEVJdogf-&pullRequest=172

Check warning on line 31 in src/test/java/org/htmlunit/cyberneko/HTMLUnicodeEntitiesParserTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this 'public' modifier.

See more on https://sonarcloud.io/project/issues?id=HtmlUnit_htmlunit-neko&issues=AZ4DX73mmI3dEVJdogf8&open=AZ4DX73mmI3dEVJdogf8&pullRequest=172

Check warning on line 31 in src/test/java/org/htmlunit/cyberneko/HTMLUnicodeEntitiesParserTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace these 12 tests with a single Parameterized one.

See more on https://sonarcloud.io/project/issues?id=HtmlUnit_htmlunit-neko&issues=AZ4DX73mmI3dEVJdoggK&open=AZ4DX73mmI3dEVJdoggK&pullRequest=172

Check warning on line 185 in src/test/java/org/htmlunit/cyberneko/HTMLUnicodeEntitiesParserTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this 'public' modifier.

See more on https://sonarcloud.io/project/issues?id=HtmlUnit_htmlunit-neko&issues=AZ4DX73mmI3dEVJdoggH&open=AZ4DX73mmI3dEVJdoggH&pullRequest=172

Check warning on line 29 in src/test/java/org/htmlunit/cyberneko/HTMLUnicodeEntitiesParserTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this 'public' modifier.

See more on https://sonarcloud.io/project/issues?id=HtmlUnit_htmlunit-neko&issues=AZ4DX73mmI3dEVJdoggJ&open=AZ4DX73mmI3dEVJdoggJ&pullRequest=172

Check warning on line 73 in src/test/java/org/htmlunit/cyberneko/HTMLUnicodeEntitiesParserTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this 'public' modifier.

See more on https://sonarcloud.io/project/issues?id=HtmlUnit_htmlunit-neko&issues=AZ4DX73mmI3dEVJdogf_&open=AZ4DX73mmI3dEVJdogf_&pullRequest=172

Check warning on line 45 in src/test/java/org/htmlunit/cyberneko/HTMLUnicodeEntitiesParserTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this 'public' modifier.

See more on https://sonarcloud.io/project/issues?id=HtmlUnit_htmlunit-neko&issues=AZ4DX73mmI3dEVJdogf9&open=AZ4DX73mmI3dEVJdogf9&pullRequest=172

Check warning on line 320 in src/test/java/org/htmlunit/cyberneko/GeneralTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this 'public' modifier.

See more on https://sonarcloud.io/project/issues?id=HtmlUnit_htmlunit-neko&issues=AZ4DX779mI3dEVJdoggS&open=AZ4DX779mI3dEVJdoggS&pullRequest=172

Check warning on line 344 in src/test/java/org/htmlunit/cyberneko/GeneralTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this 'public' modifier.

See more on https://sonarcloud.io/project/issues?id=HtmlUnit_htmlunit-neko&issues=AZ4DX779mI3dEVJdoggU&open=AZ4DX779mI3dEVJdoggU&pullRequest=172