aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2023-08-31 04:31:50 +0200
committerMartin Fischer <martin@push-f.com>2023-09-03 23:00:05 +0200
commit6f593fffaef3d1f539dd899579784c89182602b6 (patch)
tree685269f6044dbee6df58a7b841c8216375d4cedb
parent41198ce17b8d4388105a021c1645823b8d24324b (diff)
docs: document character reference resolution
-rw-r--r--src/attr.rs4
-rw-r--r--src/emitter.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/attr.rs b/src/attr.rs
index a4a3428..2330cf8 100644
--- a/src/attr.rs
+++ b/src/attr.rs
@@ -63,7 +63,7 @@ pub struct AttributeOwned<O> {
/// The attribute name.
/// Uppercase ASCII characters (A-Z) have been converted to lowercase.
pub name: String,
- /// The attribute value.
+ /// The attribute value. Character references have been resolved.
pub value: String,
/// The start offset of the attribute name.
pub name_offset: O,
@@ -94,7 +94,7 @@ impl<'a, O: Offset> Attribute<'a, O> {
self.name
}
- /// Returns the attribute value.
+ /// Returns the attribute value. Character references have been resolved.
pub fn value(&self) -> &'a str {
&self.map_val.value
}
diff --git a/src/emitter.rs b/src/emitter.rs
index 3fbb9e2..f5c3ceb 100644
--- a/src/emitter.rs
+++ b/src/emitter.rs
@@ -568,7 +568,7 @@ pub enum Token<O> {
StartTag(StartTag<O>),
/// An HTML end tag.
EndTag(EndTag<O>),
- /// A literal string.
+ /// A literal string. Character references have been resolved.
String(String),
/// An HTML comment.
Comment(Comment<O>),