| 233 | /// https://dom.spec.whatwg.org/#interface-element |
| 234 | #[derive(Debug, Clone, PartialEq, Eq)] |
| 235 | pub struct Element { |
| 236 | kind: ElementKind, |
| 237 | attributes: Vec<Attribute>, |
| 238 | } |
| 239 | |
| 240 | impl Element { |
| 241 | pub fn new(element_name: &str, attributes: Vec<Attribute>) -> Self { |
no outgoing calls