◐ Shell
clean mode source ↗

Allow data: to not be part of sanitizer’s allowed protocols by charmander · Pull Request #412 · html5lib/html5lib-python

@charmander

Copy link Copy Markdown

When data: wasn’t permitted, it could attempt to del attrs[attr] twice.

When `data:` wasn’t permitted, it could attempt to `del attrs[attr]` twice.

@codecov-io

codecov-io commented

Feb 21, 2019

edited

Loading

Copy link Copy Markdown

Codecov Report

Merging #412 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #412   +/-   ##
=======================================
  Coverage   90.79%   90.79%           
=======================================
  Files          50       50           
  Lines        6952     6952           
  Branches     1328     1328           
=======================================
  Hits         6312     6312           
  Misses        481      481           
  Partials      159      159
Impacted Files Coverage Δ
html5lib/filters/sanitizer.py 93.16% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4f92357...e4757eb. Read the comment docs.

@twm

twm commented

Mar 2, 2019

Copy link Copy Markdown

Contributor

The change looks valid, but shouldn't there be a test case for this?

hugovk and ambv reacted with thumbs up emoji