3 Dec 2026
Text of a block holding a script keeps the script as written
- What was broken
- Reading the text of an element that held a script decoded everything inside it, so the script's code came back changed along with the normal text around it.
- What I changed
- Text around a script is still decoded, but the script's own part is left as written, as in browsers. Setting a script's text also keeps it as is.
- Why it matters
- Pulling text from a page section gives what a browser would.
see the code, #339 ↗ (opens in a new tab)
3 Dec 2026
Script and style text is returned as written
- What was broken
- Reading the text of a script or style tag decoded escaped characters such as ampersands, which browsers never do. Structured data scripts then failed to parse as JSON.
- What I changed
- Script and style tags now give back their text unchanged, and setting their text stores it unchanged. Other tags work as before.
- Why it matters
- Tools that read a page's structured data get valid JSON.
see the code, #335 ↗ (opens in a new tab)
← every project