Skip to main content

Module sections

Module sections 

Source

Functions§

build_section_tree
Build parent/child/sibling relationships for a flat list of sections
parse_anchor_element
Parse a generic anchor-bearing element (tr, dt, section, li) into a ParsedSection. W3C specs use these as named targets that don’t fit the dfn/heading pattern.
parse_dfn_element
Parse a single dfn element into a ParsedSection Determines whether it’s a Definition, Algorithm, or IDL based on context
parse_emu_clause_element
Parse an ecmarkup <emu-clause> or <emu-annex> element into a ParsedSection. TC39 specs use these custom elements instead of standard headings. The section ID is on the emu-clause, with an <h1> child containing the title.
parse_heading_element
Parse a single heading element into a ParsedSection