Skip to content
New issue

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

Mistake in "Illegal character in scheme" validation error #1197

Open
jribbens opened this issue Jul 26, 2021 · 3 comments
Open

Mistake in "Illegal character in scheme" validation error #1197

jribbens opened this issue Jul 26, 2021 · 3 comments

Comments

@jribbens
Copy link

URL being validated or code to reproduce error:

<a href="tel: 12345">tel</a>
Error: Bad value tel: 12345 for attribute href on element a: Illegal character in scheme data: space is not allowed.

I do not think it is not wrong that an error is produced, however it is wrong that the error message mentions the data: scheme as no URLs of this scheme are involved.

@sideshowbarker
Copy link
Contributor

Thanks for raising this. I agree the error message is a bit confusing — but the message doesn’t say “data: scheme” and it’s not about the scheme. It says “scheme data” — with a colon after it — and that means “the data associated with the given scheme”. The scheme in this case is the tel: scheme, and the data the error message refers to is the data “ 12345”.

@jribbens
Copy link
Author

Oh wow. Yes that is spectacularly confusing ;-)

@sideshowbarker
Copy link
Contributor

Oh wow. Yes that is spectacularly confusing ;-)

Yeah, sorry — I’ll make time to make it less confusing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants