Skip to content

Commit

Permalink
Add simple panic messages
Browse files Browse the repository at this point in the history
Fixes #200
  • Loading branch information
notriddle authored Jul 12, 2024
1 parent b93f1c6 commit 757cbf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1788,8 +1788,8 @@ impl<'a> Builder<'a> {
.is_none());
}
for tag_name in &self.clean_content_tags {
assert!(!self.tags.contains(tag_name));
assert!(!self.tag_attributes.contains_key(tag_name));
assert!(!self.tags.contains(tag_name), "{tag_name} appears in clean_content_tags and in tags at the same time");
assert!(!self.tag_attributes.contains_key(tag_name), "{tag_name} appears in clean_content_tags and in tag_attributes at the same time");
}
let body = {
let children = dom.document.children.borrow();
Expand Down

0 comments on commit 757cbf1

Please sign in to comment.