We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
tag_name
1 parent f8ca576 commit d932e62Copy full SHA for d932e62
src/librustdoc/html/length_limit.rs
@@ -72,7 +72,15 @@ impl HtmlWithLimit {
72
}
73
74
/// Open an HTML tag.
75
+ ///
76
+ /// **Note:** HTML attributes have not yet been implemented.
77
+ /// This function will panic if called with a non-alphabetic `tag_name`.
78
pub(super) fn open_tag(&mut self, tag_name: &'static str) {
79
+ assert!(
80
+ tag_name.chars().all(|c| ('a'..='z').contains(&c)),
81
+ "tag_name contained non-alphabetic chars: {:?}",
82
+ tag_name
83
+ );
84
self.queued_tags.push(tag_name);
85
86
0 commit comments