part 1 · sources checked 2026-11-20
html, css, and dom: parsers, selectors, render, extraction
This module shows how a collection system turns response bytes into a document, finds and checks elements, and extracts data with no false success.
purpose
A collection system must turn the bytes of a response into a document before it can extract data. Each step can lose data, or keep data that no user sees. A defender can use the same document to hide traps, decoys, and changed data.
After the module, you can choose a method to parse a page and a selector strategy, and design an extraction check with no false success.
objectives
- Compare a regular-expression extractor with a DOM (Document Object Model) parser for one task. State the cost and the failure modes of each.
- Write a selector that survives a change of CSS class names.
- Explain why a selector cannot cross a shadow root, a cross-origin iframe, or an isolated world.
- Decide if an element is visible with the computed style and the bounding box.
- Design an extraction rule that gives
inconclusiveon an empty page, notpass. - Calculate the structural similarity of two captures, and explain what a low value means.
- Name the decoy element and honeypot element patterns of the DOM. State the signal of each one.
- Measure the break rate of each selector class over time, and test the checks of a collector against changed data.
lessons
5 of 8 published
a dim title is not yet published
- L01 from bytes to document: fetch, parse, and text extraction
- L02 selectors and the limits of the dom
- L03 render and visibility: hidden text, honeypots, and decoys
- L04 extraction rules that cannot lie (not yet published)
- L05 comparison against a baseline: soft blocks, honeypot pages, and poisoned data (not yet published)
- L06 measure selector stability over time (not yet published)
- L07 serve plausible but changed data, and detect it
- L08 extract from the accessibility tree