aboutsummaryrefslogtreecommitdiff
path: root/src/emitter.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/emitter.rs')
-rw-r--r--src/emitter.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/emitter.rs b/src/emitter.rs
index b75334a..3fbb9e2 100644
--- a/src/emitter.rs
+++ b/src/emitter.rs
@@ -456,7 +456,8 @@ pub struct StartTag<O> {
/// expected.
pub self_closing: bool,
- /// The start tag's name, such as `"p"` or `"a"`.
+ /// The tag name.
+ /// Uppercase ASCII characters (A-Z) have been converted to lowercase.
pub name: String,
/// A mapping for any HTML attributes this start tag may have.
@@ -480,7 +481,8 @@ impl<O: Offset> StartTag<O> {
/// An HTML end/close tag, such as `</p>` or `</a>`.
#[derive(Debug, Eq, PartialEq)]
pub struct EndTag<O> {
- /// The ending tag's name, such as `"p"` or `"a"`.
+ /// The tag name.
+ /// Uppercase ASCII characters (A-Z) have been converted to lowercase.
pub name: String,
/// The source code span of the tag.
@@ -524,7 +526,8 @@ pub struct Doctype<O> {
/// [force-quirks flag]: https://html.spec.whatwg.org/multipage/parsing.html#force-quirks-flag
pub force_quirks: bool,
- /// The doctype's name. For HTML documents this should be "html".
+ /// The doctype's name. Uppercase ASCII characters (A-Z) have been
+ /// converted to lowercase. For HTML documents this should be "html".
pub name: String,
/// The doctype's public identifier.