Fixes tagged HTML
2 fixes · back to all fixes
Web ScrapingPython
My href regex found 0 links on a page with 101 of them
A link-extraction regex returned nothing on a page full of links. The page was fine. It ships minified HTML, where quotes around an attribute value are optional, so href=/media/x.pdf matches nothing that expects href="...".
5 min read →
CSSHTML
The hidden attribute stops working when CSS sets display
A modal with the hidden attribute rendered open on every page load and refused to close. The cause: a one-line CSS display rule silently overrides the hidden attribute, and a one-line attribute selector fixes it.
2 min read →