Skip to content

First pass at documenting html5lib.filters #375

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

Merged
merged 1 commit into from
Dec 3, 2017
Merged

First pass at documenting html5lib.filters #375

merged 1 commit into from
Dec 3, 2017

Conversation

willkg
Copy link
Contributor

@willkg willkg commented Nov 29, 2017

This covers html5lib.filters in issue #307.

Is this documentation for filters clear enough for a 1.0?

@willkg
Copy link
Contributor Author

willkg commented Nov 29, 2017

@gsnedders, @jgraham Can one of you review this, please?

@willkg willkg added this to the 1.0 milestone Nov 29, 2017
@codecov-io
Copy link

codecov-io commented Nov 29, 2017

Codecov Report

Merging #375 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #375   +/-   ##
=======================================
  Coverage   90.76%   90.76%           
=======================================
  Files          50       50           
  Lines        6950     6950           
  Branches     1328     1328           
=======================================
  Hits         6308     6308           
  Misses        483      483           
  Partials      159      159
Impacted Files Coverage Δ
html5lib/filters/inject_meta_charset.py 81.25% <ø> (ø) ⬆️
html5lib/filters/sanitizer.py 93.16% <ø> (ø) ⬆️
html5lib/filters/whitespace.py 100% <ø> (ø) ⬆️
html5lib/filters/lint.py 87.69% <ø> (ø) ⬆️
html5lib/filters/alphabeticalattributes.py 100% <ø> (ø) ⬆️
html5lib/filters/optionaltags.py 95.78% <ø> (ø) ⬆️

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 461bda3...31b3783. Read the comment docs.

@@ -10,7 +10,7 @@


class Filter(base.Filter):

"""Collapses whitespace except in pre and textarea tags"""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Elements, not tags. Also it's more than just pre and textarea; I think script is in rcdataElements too.

@willkg
Copy link
Contributor Author

willkg commented Dec 1, 2017

^^^ @gsnedders Does that fix the issue? I sort of understand it, but I'm not sure I know enough to know if it's completely fixed or not.

@willkg
Copy link
Contributor Author

willkg commented Dec 3, 2017

@gsnedders Can you review this please?

@gsnedders gsnedders merged commit f7708c4 into html5lib:master Dec 3, 2017
@willkg
Copy link
Contributor Author

willkg commented Dec 4, 2017

Thank you!

@willkg willkg deleted the 307-filters branch December 4, 2017 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants