-
Notifications
You must be signed in to change notification settings - Fork 20
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
Avoid truncating URLs in unquoted hrefs #69
base: master
Are you sure you want to change the base?
Conversation
971afd0
to
773467d
Compare
773467d
to
7ba5576
Compare
@@ -163,7 +162,7 @@ impl<'a> Parser<'a> { | |||
let value = if let Some(quote) = self.stream.expect_oneof_and_skip(&[b'"', b'\'']) { | |||
self.read_to(quote) | |||
} else { | |||
self.read_to4([b' ', b'\n', b'/', b'>']) | |||
self.read_to3([b' ', b'\n', b'>']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per MDN, if the /
isn't separated from the unquoted value by whitespace, it should be treated as part of the value. So I think it's correct to just omit it entirely here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👋 Anything I can do to help this along? I'd prefer not to fork but also want to unblock our users. Thank you! |
This is a polite ping about merging and releasing this fix. As primary maintainer of the |
Closes #68.