|
11 | 11 | __all__= ["Filter"] |
12 | 12 |
|
13 | 13 |
|
14 | | -acceptable_elements=frozenset(( |
| 14 | +allowed_elements=frozenset(( |
15 | 15 | (namespaces['html'],'a'), |
16 | 16 | (namespaces['html'],'abbr'), |
17 | 17 | (namespaces['html'],'acronym'), |
|
175 | 175 | (namespaces['svg'],'use'), |
176 | 176 | )) |
177 | 177 |
|
178 | | -acceptable_attributes=frozenset(( |
| 178 | +allowed_attributes=frozenset(( |
179 | 179 | # HTML attributes |
180 | 180 | (None,'abbr'), |
181 | 181 | (None,'accept'), |
|
552 | 552 | (None,'use') |
553 | 553 | )) |
554 | 554 |
|
555 | | -acceptable_css_properties=frozenset(( |
| 555 | +allowed_css_properties=frozenset(( |
556 | 556 | 'azimuth', |
557 | 557 | 'background-color', |
558 | 558 | 'border-bottom-color', |
|
601 | 601 | 'width', |
602 | 602 | )) |
603 | 603 |
|
604 | | -acceptable_css_keywords=frozenset(( |
| 604 | +allowed_css_keywords=frozenset(( |
605 | 605 | 'auto', |
606 | 606 | 'aqua', |
607 | 607 | 'black', |
|
643 | 643 | 'yellow', |
644 | 644 | )) |
645 | 645 |
|
646 | | -acceptable_svg_properties=frozenset(( |
| 646 | +allowed_svg_properties=frozenset(( |
647 | 647 | 'fill', |
648 | 648 | 'fill-opacity', |
649 | 649 | 'fill-rule', |
|
654 | 654 | 'stroke-opacity', |
655 | 655 | )) |
656 | 656 |
|
657 | | -acceptable_protocols=frozenset(( |
| 657 | +allowed_protocols=frozenset(( |
658 | 658 | 'ed2k', |
659 | 659 | 'ftp', |
660 | 660 | 'http', |
|
680 | 680 | 'data', |
681 | 681 | )) |
682 | 682 |
|
683 | | -acceptable_content_types=frozenset(( |
| 683 | +allowed_content_types=frozenset(( |
684 | 684 | 'image/png', |
685 | 685 | 'image/jpeg', |
686 | 686 | 'image/gif', |
|
689 | 689 | 'text/plain', |
690 | 690 | )) |
691 | 691 |
|
692 | | -allowed_elements=acceptable_elements |
693 | | -allowed_attributes=acceptable_attributes |
694 | | -allowed_css_properties=acceptable_css_properties |
695 | | -allowed_css_keywords=acceptable_css_keywords |
696 | | -allowed_svg_properties=acceptable_svg_properties |
697 | | -allowed_protocols=acceptable_protocols |
698 | | -allowed_content_types=acceptable_content_types |
699 | | - |
700 | 692 |
|
701 | 693 | data_content_type=re.compile(r''' |
702 | 694 | ^ |
|