Comments (2)
To be precise, the error is caused by HTMLProofer trying to use nokogiri to infer whether #search%7Cga%7C1%7Cg%3A%22org.apache.spark%22%20AND%20v%3A%223.5.0%22
is a valid hash for https://search.maven.org/
.
However, this is not meant to be a content hash but used to provide some query parameters processed via JavaScript, and this is not something HTMLProofer/Nokogiri can do much about.
Therefore, you would need to instruct HTMLProofer that this is not a hash to be checked, which is indeed what --swap-urls
above would do by stripping #search...
Closing this issue
from html-proofer.
@nchammas, I could reproduce the error (with HTMLProofer 5.0.8) as follows:
htmlproofer --as-links "https://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.apache.spark%22%20AND%20v%3A%223.5.0%22"
Not sure HTMLProofer can do much to make this special full URL checkable, since the error is in fact coming from nokogiri.
Still, HTMLProofer would allow you to ignore the parts of the URL that are causing issues with --swap-urls
, e.g.
htmlproofer --swap-urls "search\.maven\.org/#search.*:search.maven.org" --as-links "https://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.apache.spark%22%20AND%20v%3A%223.5.0%22"
You find full documentation for this in the README.
Hope this helps
from html-proofer.
Related Issues (20)
- NoMethodError: undefined method `empty?' for true:TrueClass HOT 7
- Changelog of a different project HOT 1
- Buggy parsing of srcset attribute HOT 1
- `data-proofer-ignore` does not silence "Input contains noncharacter" HOT 1
- Test suite depends on vcr, which is not free software HOT 7
- Crashing when checking the external hashes of URLs
- Official HTMLProofer Docker image HOT 2
- v5 upgrade guide? HOT 1
- Reporting broken links when using relative internal links reported as broken HOT 11
- Fails multi email mailto
- Add --ignore-internal flag HOT 4
- Error for http only sites HOT 5
- allow_missing_href started giving false positives since v4.3 HOT 2
- cyn.eth
- HTTP 302 (to the same URL?) reported as failures HOT 2
- Error during deployment with scheme format HOT 3
- Question - setting up html proofer to skip new pages added to a website which will return a 404 HOT 3
- Manager
- Small extra hint for beginners HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from html-proofer.