I'm parsing some links with ? and & characters in them, but currently HandsomeSoup only allows numbers, letters and some special characters (/-_|~="'.) inside attribute selectors.
From browsing the CSS2 spec and grammar, it seems "anything goes" when it comes to the content of an attribute selector, so I've updated the parser to allow all characters except [ and ].
My editor also trimmed some trailing whitespace, which I'm happy to put back if you like :stuck_out_tongue:.
This change fixes my application but if you can foresee any negatives, let me know!
I'm parsing some links with
?
and&
characters in them, but currently HandsomeSoup only allows numbers, letters and some special characters (/-_|~="'.
) inside attribute selectors.From browsing the CSS2 spec and grammar, it seems "anything goes" when it comes to the content of an attribute selector, so I've updated the parser to allow all characters except
[
and]
.My editor also trimmed some trailing whitespace, which I'm happy to put back if you like :stuck_out_tongue:.
This change fixes my application but if you can foresee any negatives, let me know!