HTML parsing, wrapping, and static asset path handling.
This module transforms partial HTML (like LiveView renders or controller responses) into complete, standalone HTML documents suitable for axe-core analysis.
Responsibilities
- Wrapping partial HTML in complete document structure
- Extracting
<head>content from the Phoenix endpoint - Prefixing static asset paths with
file://for local analysis - Removing scripts (which can't execute in static snapshots)
This module is used internally by Excessibility.Snapshot and typically
doesn't need to be called directly.
Summary
Functions
Wraps HTML content in a complete document structure if needed.