Description of problem
URL to affected spec or repo:
What happened (e.g., it crashed)?:
data-include.js reads response.text() directly without checking response.ok. If the remote file is unavailable, a server error page might be injected into the document body.
Expected behavior (e.g., it shouldn't crash):
Check the status code before reading the body, maybe include the URL, HTTP status, and troubleshooting tips in the error message.
Description of problem
URL to affected spec or repo:
What happened (e.g., it crashed)?:
data-include.js reads
response.text()directly without checkingresponse.ok. If the remote file is unavailable, a server error page might be injected into the document body.Expected behavior (e.g., it shouldn't crash):
Check the status code before reading the body, maybe include the URL, HTTP status, and troubleshooting tips in the error message.