Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

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

Sign up
Appearance settings

sanitize_css gauntlet rejects valid css #316

Open
Labels
@willkg

Description

@willkg

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 infilters/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


      [8]ページ先頭

      ©2009-2025 Movatter.jp