smoweb-validator is a CLI tool to check if a web page respects smolweb HTML subset. This tool use https://jsoup.org/ HTML5 parser and is written in Java. https://smolweb.org/specs/index.html
  • Java 97.8%
  • Shell 2.2%
Find a file
2025-11-06 14:29:38 +01:00
.gitignore Add .gitignore 2025-09-09 22:46:48 +03:00
build.sh bump to jsoup 1.21.2 2025-11-06 14:29:38 +01:00
clean.sh Add clean.sh script to clean working directory from build artifacts 2025-09-09 23:19:45 +03:00
css-grading.conf Add classification of CSS properties (Grade A to F) 2025-08-27 22:03:46 +02:00
CSSGradingConfig.java replace tabs with spaces 2025-09-11 08:57:34 +02:00
CSSPropertyGrader.java Remove redundant conversion of all properties Set to the List 2025-09-10 01:48:25 +03:00
CSSPropertyRule.java Add classification of CSS properties (Grade A to F) 2025-08-27 22:03:46 +02:00
CSSReport.java replace tabs with spaces 2025-09-11 08:57:34 +02:00
CSSValidator.java replace tabs with spaces 2025-09-11 08:57:34 +02:00
LICENSE Initial commit 2025-08-17 14:09:36 +02:00
PropertyOccurrence.java Add classification of CSS properties (Grade A to F) 2025-08-27 22:03:46 +02:00
README.md bump to jsoup 1.21.2 2025-11-06 14:29:38 +01:00
RuleOccurrence.java Add classification of CSS properties (Grade A to F) 2025-08-27 22:03:46 +02:00
smolweb-validate bump to jsoup 1.21.2 2025-11-06 14:29:38 +01:00
SmolwebValidator.java bump to jsoup 1.21.2 2025-11-06 14:29:38 +01:00

smolweb-validator

smolweb-validator is a CLI tool to check if a web page respects smolweb HTML subset.

This tool uses jsoup HTML5 parser, a java library distributed under MIT License.

You need a Java Runtime Environment to execute it, and/or a Java Development Kit if you want to build it.

Usage

./smolweb-validate <URL> [--verbose]
java -cp "jsoup-1.21.2.jar:." SmolwebValidator <URL> [--verbose]
jre -cp "jsoup-1.21.2.jar:." SmolwebValidator <URL> [--verbose]

Examples:

./smolweb-validate https://example.com
./smolweb-validate https://example.com --verbose
java -cp "jsoup-1.21.2.jar:." SmolwebValidator https://example.com
java -cp "jsoup-1.21.2.jar:." SmolwebValidator https://example.com --verbose
jre -cp "jsoup-1.21.2.jar:." SmolwebValidator https://example.com
jre -cp "jsoup-1.21.2.jar:." SmolwebValidator https://example.com --verbose

Options:

--verbose    Show all errors and detailed statistics

Script: smolweb-validate is a useful script detecting java or jre

Script clean.sh can be used to clean repository from build artifacts:

./clean.sh        Removes class files made by compiler
./clean.sh all    Removes class files and downloaded JAR file

Test online

It is possible to test smolweb-validator on smolweb.org/validator/.