for your use case you probably don’t want any language detection to be performed anyway
Peter Rushforth
@prushforth
No I didn't but I wasn't averse to adding the attribute, but then it got a little hairy
Peter Rushforth
@prushforth
Doesn't seem to be https://github.com/validator/validator/blob/master/src/nu/validator/xml/langattributes/XmlLangAttributeDroppingContentHandlerWrapper.java as a breakpoint in the startElement method for that ContentHandler doesn't get called when validating a mapml document with <mapml lang="en">, perhaps because the schema isn't one of those designated by VerifierServletTransaction.isXmlLangAllowingSchema() as allowing xml:lang, and indeed it's lang not xml:lang . But I think I will just avoid the whole issue by not adding the attribute and chalk it up to something that will no doubt become clear in time. Thanks for your advice on this! Have a great Monday December 17th (my 58th birthday, which I am taking off as a national holiday).
Michael[tm] Smith
@sideshowbarker
oh!
happy 58th!
Peter Rushforth
@prushforth
Thanks!!
Michael[tm] Smith
@sideshowbarker
enjoy the day off
Peter Rushforth
@prushforth
Whoa, I set htmlParser.setMappingLangToXmlLang() from true to false and now it's validating correctly. I see in the HtmlAttributes class hixie has a note "Be careful with this class. QName is the name in from HTML tokenization." Which makes me feel like Young James Heriot (dinna mess wit sumat ye ken nawt aboot).
Michael[tm] Smith
@sideshowbarker
@prushforth heh. I wish I could claim I understand all that handling myself, but actually every time I need to mess around with it, I basically have to re-learn it all again — because I forgot whatever I had known about it from the previous time I touched it. And then after re-learning it I just forget it all again until the next time
Peter Rushforth
@prushforth
Lol
Peter Rushforth
@prushforth
@sideshowbarker Hi Mike Happy New Year! What is the division of labour between a checker and Assertions.java? Is there a category of task which deserves its own checker? Thanks.
Michael[tm] Smith
@sideshowbarker
Happy New Year @prushforth. I’ve not really followed any strict division, but the language-detector code is an example of something added more recently that seemed big enough on its own to merit a separate checker.
Going a little further back in time, another example is the Microdata checker
on the other hand, the RDFaLite checker is one that I made into a separate checker but that in hindsight I could have just as well incorporated into the Assertions.java code, I guess
…because it’s much simpler than the Microdata checker, and doing much fewer checks
the XmlPiChecker is another that was a big-enough and complicated-enough chunk of code on its own to merit a separate checker
Peter Rushforth
@prushforth
OK great, I will keep that info in mind. Good evening!
Mike
@skazx_twitter
hey all, is this room for a specific type of validator? I'm using express-validator.js and had a question about validating a string that is alphanumeric with spaces (street address).
Michael[tm] Smith
@sideshowbarker
@jaimeiniesta I finally set up some automation that makes a new jar available for every commit to master
hi all I would like to build a child-friendly version of nu validator that uses more plain English and visuals to explain syntax mistakes to children learning to code
I’ve never actually used that EmbeddedValidator.java code myself (a contributor added it), so I’m not completely certain it works as expected. But at least I can say from looking at the code, it looks like it should work
anyway, if you run into any specific problems, feel free to ping me here again
Michael[tm] Smith
@sideshowbarker
PSA: yesterday I made an change to the Dockerfile for the checker which reduces the image size from 130MB down to “just” 60MB
I smoke-tested the resulting image to make sure the change didn’t regress anything, but I otherwise did no testing beyond that — because I personally don’t actually use the Docker image for anything
so any of y’all who actually do use the Docker image, please try running the latest from Docker Hub and if you notice any problems, either lemme know here or else file an issue
payaln
@payaln
Hi! I have a problem validating an html file with hieroglyphs (there are many such errors, here is one of them - "Malformed byte sequence: “ba”") The file was saved with gb2312 encoding and has the tag <meta http-equiv="content-type" content="text/html; charset=gb2312"> Hieroglyph is encoded by several bytes, but error talk about only one byte. I think it's strange. What could be the problem?
Michael[tm] Smith
@sideshowbarker
Hi @payaln
Can you point me at the URL for a document that causes the validator to emit that error message?
My initial guess is, the document is being served with a Content-Type header that has a charset parameter which is something other than gb2312
@payaln The checker doesn’t report any “Malformed byte sequence” errors when I check that 1.htm file
As I said earlier, I think the reason you would get that error is if the document is being served with a Content-Type header that has a charset parameter which is something other than gb2312 (or gbk)
payaln
@payaln
@sideshowbarker , you can show me true file with hieroglyphs and gb2312 encoding?
Jan Rummens
@janrum
So if you want to participate in testing eth2 medalla, you need to have a validator node?
new speaking :-)
newbie that is
your client to use is prysm?
you need to deposit 32ETH and convert it to GoETH
My question what cloud infrastructure is best to use? Any ideas on ANKR?