Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

sanitize_css gauntlet rejects valid css #316

Copy link
Copy link
Open
@willkg

Description

@willkg
Issue body actions

I'm working through rewriting Bleach to work with html5lib >= 0.99999999.

We have a few "sanitize the css" tests that are failing the regexp gauntlet in filters/sanitizer.py:Filter:sanitize_css.

In particular, it doesn't like the following:

  • font: italic small-caps bolder condensed 16px/3 cursive;
  • color: rgba(255,0,0,0.4);
  • color: hsl(30,100%,50%);
  • cursor: -moz-grab;
  • text-overflow: "," ellipsis;
  • text-overflow: ',' ellipsis;

I tested with html5lib 0.99999999 (8 9s) and 0.999999999 (9 9s), but looking at git history for the lines in question, I think it's been this way for a while.

https://github.com/html5lib/html5lib-python/blob/master/html5lib/filters/sanitizer.py#L843

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.