diff options
author | Martin Fischer <martin@push-f.com> | 2023-08-30 10:31:41 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2023-09-03 23:00:05 +0200 |
commit | 41198ce17b8d4388105a021c1645823b8d24324b (patch) | |
tree | 37eb2a1d44275a809f4508787e7e92f869b33446 /src/emitter.rs | |
parent | ef0f2208992121a45019dce4b5753638607eeb06 (diff) |
docs: document what has been ASCII-lowercased
Diffstat (limited to 'src/emitter.rs')
-rw-r--r-- | src/emitter.rs | 9 |
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. |