From 99779c22b13360ae9f7993adfeaef4cd948a5819 Mon Sep 17 00:00:00 2001 From: Mohamed Mansour Date: Mon, 23 Feb 2026 17:06:21 -0800 Subject: [PATCH 1/7] Rewrite process_component_directive with component-aware attribute handling Rewrite the component directive processing to match the Node.js reference implementation for entry stream and component template stream handling. Entry stream changes: - Emit opening tag, attributes, closing bracket as separate fragments - Add process_component_tag_attributes for component-specific attribute logic - Static attrs on components emit as attribute fragments with rawValue - First dynamic/static attribute gets attrStart marker - Skipped attrs (class, style, role, data-*, aria-*) get attrSkip - Process slot children with full directive support Component template stream changes: - Add process_component_template for shadow DOM wrapping - Skip double-wrapping when template already has