summaryrefslogtreecommitdiff
path: root/src/tokenizer
diff options
context:
space:
mode:
Diffstat (limited to 'src/tokenizer')
-rw-r--r--src/tokenizer/error.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tokenizer/error.rs b/src/tokenizer/error.rs
index 89eed2a..0acc88f 100644
--- a/src/tokenizer/error.rs
+++ b/src/tokenizer/error.rs
@@ -46,6 +46,8 @@ pub enum CharRefError {
EofInNumericCharRef,
EofAfterNumberSign,
EqualsSignAfterCharRefInAttr,
+ #[cfg(feature = "named-entities")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "named-entities")))]
InvalidNamedCharRef,
}
@@ -70,6 +72,7 @@ impl Display for CharRefError {
CharRefError::EqualsSignAfterCharRefInAttr => {
write!(f, "equals sign after character reference in attribute")
}
+ #[cfg(feature = "named-entities")]
CharRefError::InvalidNamedCharRef => {
write!(f, "invalid named character reference")
}