///|
/// Simple HTML Parser
/// Parses a subset of HTML for layout testing

///|
/// HTML Element node
pub(all) struct Element {
  tag : String
  id : String?
  classes : Array[String]
  style : String? // inline style attribute
  attributes : Map[String, String]
  children : Array[Node]
}

///|
/// Parsed HTML document with extracted resources
pub(all) struct Document {
  root : Element
  stylesheets : Array[String] // CSS content from