mozilla / bleach

Bleach is an allowed-list-based HTML sanitizing library that escapes or strips markup and attributes
https://bleach.readthedocs.io/en/latest/
Other
2.65k stars 251 forks source link

add urlparse tests based on wpt url tests (#668) #671

Closed willkg closed 2 years ago

willkg commented 2 years ago

This adds 20 of the wpt url tests. There are like a thousand of them. We probably should add more, but it needs to be done manually because the parse results have a different shape and theirs factor in a base url. I added comments on some output differences I saw.

willkg commented 2 years ago

@g-k Is this along the lines of what you were thinking? If you skim through the file, what other ones would be good to add in this pass?

willkg commented 2 years ago

Thank you!