Single post
jump to repliesI have built an online version of the #smolweb validator
https://smolweb.org/validator/
(it does not check all the things I would like... always under improvement).
10 replies
back to top@adele I don't understand this error on my site "HTML parsing error at position 81 (line 2): Unexpected character 'h' in input state [BetweenDoctypePublicAndSystemIdentifiers]'
@bortzmeyer yes, it is strange. I use JSoup to analyze a page and this error comes directly from jsoup. It try to parse the page in html mode and not xml. I could switch to XML but smolweb guidelines recommend a simple tag. XHTML is too strict for handwritten html code and cause errors with old browsers (retro machine)
@bortzmeyer I've corrected the Smolweb-validator to detect XHTML pages
Nice job thx
π VALIDATION SUMMARY
ββββββββββββββββββββββββββββββββββββββββ
β INVALID: This page does not conform to the smolweb HTML subset.
π Statistics:
Total elements: 118
Valid elements: 118
Invalid elements: 0
π Misnested Tags (14):
1. HTML parsing error Unexpected EndTag token [</br>] when in state
β Errors (7):
1. <li> must be a child of <ul> or <ol>
I though my blog is smolweb π’
But the output is not by your guideline for smolweb: Use emoticons, not emojis
@napierge not do far !
@adele Wohoo, almost good :-)
@chrysn whahoo!
not so bad
@adele that's really useful, thanks. My website fails by having an iframe tag in. Good to know. Now for a fix
@adeleΒ awesome! ... did not realize picture tag is frowned upon ... need to check (my site is Gemini first, then converted to HTML ...)
@adele great! I checked that it works on Dillo as well. I'll need to fix some issues in the Dillo website.