rdflib.js icon indicating copy to clipboard operation
rdflib.js copied to clipboard

Skip rdfParse if script content is empty

Open csarven opened this issue 6 months ago • 2 comments

May be sufficient to resolve https://github.com/linkeddata/rdflib.js/issues/692 . There should be better checks before committing to parse, e.g., type=text/html and application/xhtml+xml in a script block is not particularly common.

csarven avatar Jun 29 '25 20:06 csarven

@csarven does this still need merging? @doriantaylor do you have a test case you can add?

jeswr avatar Jul 29 '25 11:07 jeswr

I didn't originally but I could I suppose; is there a guideline for adding tests somewhere?

doriantaylor avatar Aug 05 '25 11:08 doriantaylor