We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AFAICT, it's not defined how to index into a byte sequence, but it probably should be.
The mimesniff spec already says things like "where the first byte is index 0", and I filed W3C bug 28519 with the following description:
Make explicit the fact that an index beyond the length of the sequence yields undefined.
But these things should probably come from infra, not be exclusive to mimesniff.
The text was updated successfully, but these errors were encountered:
Note that for lists, we say
The index cannot be out-of-bounds, except when used with exists.
I.e., you should basically guard any potentially-out-bounds index access with "if x[i] exists" or "if i >= x's size"
Sorry, something went wrong.
No branches or pull requests
AFAICT, it's not defined how to index into a byte sequence, but it probably should be.
The mimesniff spec already says things like "where the first byte is index 0", and I filed W3C bug 28519 with the following description:
But these things should probably come from infra, not be exclusive to mimesniff.
The text was updated successfully, but these errors were encountered: