Skip to content

Conversation

@bourgeoa
Copy link
Member

@bourgeoa bourgeoa commented Nov 5, 2025

Migrates the fix from #693 (csarven's fork) into the main repository to resolve #692.

Change
Prevents parsing empty script tags in RDFa documents by checking content length before invoking the parser:

// reference/fetcher-classes.js, line 116

  • if (Parsable[contentType]) {
  • if (Parsable[contentType] && scripts[i].textContent.trim().length) {
    rdfParse(scripts[i].textContent, kb, xhr.original.uri, contentType)
    }
    Fixes errors when encountering <script type="text/turtle" src="..."></script> tags with no body content.

@bourgeoa bourgeoa closed this Nov 5, 2025
@bourgeoa bourgeoa deleted the fix/script-textcontent-parsing branch November 5, 2025 11:13
@bourgeoa bourgeoa restored the fix/script-textcontent-parsing branch November 5, 2025 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fetching data islands in RDFa too zealous

3 participants