html_element/content/
mod.rs

1//! [WHATWG specification](https://html.spec.whatwg.org/multipage/dom.html#content-models)
2
3pub mod embedded;
4pub mod flow;
5pub mod heading;
6pub mod interactive;
7pub mod metadata;
8pub mod palpable;
9pub mod phrasing;
10pub mod script_supporting;
11pub mod sectioning;
12
13pub use embedded::*;
14pub use flow::*;
15pub use heading::*;
16pub use interactive::*;
17pub use metadata::*;
18pub use palpable::*;
19pub use phrasing::*;
20pub use script_supporting::*;
21pub use sectioning::*;
22
23/// [WHATWG specification](https://html.spec.whatwg.org/multipage/dom.html#content-models)
24#[derive(Clone, Debug, PartialEq, strum_macros::Display, strum_macros::EnumIs)]
25#[strum(serialize_all = "lowercase")]
26pub enum HTMLContent {
27    /// [WHATWG specification](https://html.spec.whatwg.org/multipage/dom.html#embedded-content)
28    Embedded(EmbeddedContent),
29    /// [WHATWG specification](https://html.spec.whatwg.org/multipage/dom.html#flow-content)
30    Flow(FlowContent),
31    /// [WHATWG specification](https://html.spec.whatwg.org/multipage/dom.html#heading-content)
32    Heading(HeadingContent),
33    /// [WHATWG specification](https://html.spec.whatwg.org/multipage/dom.html#interactive-content)
34    Interactive(InteractiveContent),
35    /// [WHATWG specification](https://html.spec.whatwg.org/multipage/dom.html#metadata-content)
36    Metadata(MetadataContent),
37    /// [WHATWG specification](https://html.spec.whatwg.org/multipage/dom.html#palpable-content)
38    Palpable(PalpableContent),
39    /// [WHATWG specification](https://html.spec.whatwg.org/multipage/dom.html#phrasing-content)
40    Phrasing(PhrasingContent),
41    /// [WHATWG specification](https://html.spec.whatwg.org/multipage/dom.html#script-supporting-elements)
42    ScriptSupporting(ScriptSupportingElement),
43    /// [WHATWG specification](https://html.spec.whatwg.org/multipage/dom.html#sectioning-content)
44    Sectioning(SectioningContent),
45}