Skip to content

Commit 101ebe6

Browse files
Copilotrbri
andcommitted
Update Maven plugins, improve gitattributes and README badges
Co-authored-by: rbri <[email protected]>
1 parent b428d56 commit 101ebe6

File tree

3 files changed

+48
-9
lines changed

3 files changed

+48
-9
lines changed

.gitattributes

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,37 @@
11
* text=auto
22

3+
# Source files
34
*.java text diff=java
5+
*.xml text
6+
*.properties text
7+
8+
# Web files
49
*.html text diff=html
510
*.css text
611
*.js text
7-
*.xml text
8-
.travis.yml text
912

13+
# Documentation
14+
*.md text diff=markdown
15+
*.txt text
16+
17+
# Configuration files
18+
*.yml text
19+
*.yaml text
20+
.editorconfig text
21+
.gitignore text
22+
.gitattributes text
23+
24+
# Scripts
25+
*.sh text eol=lf
26+
*.bat text eol=crlf
27+
28+
# Archives
29+
*.jar binary
30+
*.zip binary
31+
*.tar binary
32+
*.gz binary
33+
34+
# Test files - specific binary files
1035
src/test/resources/org/htmlunit/cyberneko/testfiles/test010.html binary
1136
src/test/resources/org/htmlunit/cyberneko/testfiles/test011.html binary
1237

README.md

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,27 @@
11
# Htmlunit-NekoHtml Parser
22

3+
[![Maven Central Version](https://img.shields.io/maven-central/v/org.htmlunit/neko-htmlunit)](https://central.sonatype.com/artifact/org.htmlunit/neko-htmlunit)
4+
[![Build Status](https://jenkins.wetator.org/buildStatus/icon?job=HtmlUnit+-+Neko)](https://jenkins.wetator.org/view/HtmlUnit/job/HtmlUnit%20-%20Neko/)
5+
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
6+
[![Java Version](https://img.shields.io/badge/Java-8%2B-orange.svg)](https://www.oracle.com/java/)
7+
38
The **Htmlunit-NekoHtml** Parser is a HTML scanner and tag balancer that enables application programmers to parse HTML documents
49
and access the information using standard XML interfaces.
510
The parser can scan HTML files and "fix up" many common mistakes that human (and computer) authors make in writing HTML documents.
611
NekoHTML adds missing parent elements; automatically closes elements with optional end tags; and can handle mismatched inline element tags.
712

8-
The **Htmlunit-NekoHtml** Parser has no external dependencies at all, requires Java 8 and works also on Android.
9-
The **Htmlunit-NekoHtml** Parser is used by Htmlunit.
13+
## Key Features
1014

11-
[![Maven Central Version](https://img.shields.io/maven-central/v/org.htmlunit/neko-htmlunit)](https://central.sonatype.com/artifact/org.htmlunit/neko-htmlunit)
15+
**No External Dependencies** - Pure Java implementation
16+
**Java 8+ Compatible** - Works with Java 8, 11, 17, 21 and beyond
17+
**Android Support** - Runs on Android platforms
18+
**Error Tolerant** - Handles malformed HTML gracefully
19+
**Standards Compliant** - Follows HTML parsing specifications
20+
**Well Tested** - Over 8,000 test cases
1221

13-
:heart: [Sponsor](https://github.com/sponsors/rbri)
22+
The **Htmlunit-NekoHtml** Parser is used by [HtmlUnit](https://htmlunit.sourceforge.io/).
23+
24+
:heart: [Sponsor this project](https://github.com/sponsors/rbri)
1425

1526
### Project News
1627

@@ -20,9 +31,12 @@ The **Htmlunit-NekoHtml** Parser is used by Htmlunit.
2031

2132
### Latest release Version 4.18.0 / October 30, 2025
2233

23-
##### [CVE-2022-29546](https://nvd.nist.gov/vuln/detail/CVE-2022-29546)
34+
##### Security Advisories
35+
36+
[CVE-2022-29546](https://nvd.nist.gov/vuln/detail/CVE-2022-29546): Fixed in versions 2.61.0+
2437
Htmlunit-NekoHtml Parser suffers from a denial of service vulnerability on versions 2.60.0 and below. A specifically crafted input regarding the parsing of processing instructions leads to heap memory consumption.
25-
##### [CVE-2022-28366](https://nvd.nist.gov/vuln/detail/CVE-2022-28366)
38+
39+
[CVE-2022-28366](https://nvd.nist.gov/vuln/detail/CVE-2022-28366): Fixed in versions 2.27+
2640
Htmlunit-NekoHtml Parser suffers from a denial of service via crafted Processing Instruction vulnerability on versions 2.26 and below.
2741

2842
## Get it!

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<gpg-plugin.version>3.2.8</gpg-plugin.version>
4242
<enforcer-plugin.version>3.6.2</enforcer-plugin.version>
4343
<compiler-plugin.version>3.14.1</compiler-plugin.version>
44-
<jar-plugin.version>3.4.2</jar-plugin.version>
44+
<jar-plugin.version>3.5.0</jar-plugin.version>
4545
<javadoc-plugin.version>3.12.0</javadoc-plugin.version>
4646
<surefire-plugin.version>3.5.4</surefire-plugin.version>
4747
</properties>

0 commit comments

Comments
 (0)