Basic block parsing functionality with DOM injection