config-file-validator icon indicating copy to clipboard operation
config-file-validator copied to clipboard

HTML files validation

Open divyansh-2001 opened this issue 1 year ago • 2 comments

One potential library is golang.org/x/net

divyansh-2001 avatar Dec 02 '24 17:12 divyansh-2001

I would like to work on this, however I have a few questions.

  1. What does having configs in html accomplish and why not just use xml instead ?

  2. Following the previous question, what does validating a html file mean ? Does it mean that it is 'well-formed' to the standard or does it mean a browser can render it ? because browsers can render ill-formed html files.

According to my understanding, using golang.org/x/net, we can parse a string, to a dom tree and again convert it to a string to compare with the input and they should compare equal if the html is well formed.

docs: Parse: https://pkg.go.dev/golang.org/x/[email protected]/html#Parse Render: https://pkg.go.dev/golang.org/x/[email protected]/html#Render

skirtan1 avatar Jan 24 '25 08:01 skirtan1

Would HTML files even be considered as 'config' files?

OmBiradar avatar Apr 01 '25 03:04 OmBiradar

Agree with the thoughts above - HTML validation seems out of scope for this tool

kehoecj avatar Oct 07 '25 22:10 kehoecj