Clean up css_parser and main example

This commit is contained in:
2020-04-25 20:37:07 -04:00
parent 5f57b390e2
commit fce50554a3
3 changed files with 10 additions and 32 deletions

View File

@@ -122,9 +122,11 @@ impl<'arena> Sanitizer<'arena> {
self.remove_attributes(node);
self.add_attributes(node);
self.sanitize_attribute_protocols(node);
// TODO: save the parsed CSS syntax tree from these methods onto the arena dom so that
// user-created transformers below will have access to modify them without having to
// re-parse.
self.sanitize_style_tag_css(node);
self.sanitize_style_attribute_css(node);
// self.serialize_css_test(node);
for transformer in self.transformers.iter() {
transformer(node, &self.arena);