Opened from disk

This site is meant to be served, so its folder tree and search do not work when a page is opened from disk. Run ghg serve in the folder of your ghg.toml, or serve the site's folder with any web server, then open the address it gives.

Skip to content
Theme

Feature: Hostile <script>alert("feature")</script> & 'friends'

A description with <img src=x onerror="alert('description')"> & <b>bold</b> &amp; &#60;i&#62;

Line one of <a href="javascript:alert('scenario description')">a link</a>
Line two with <!-- a comment --> and ]]>

  1. Given a user named "<script>alert('parameter')</script>"

From the scenario

  1. When the text is <i>italic</i> & "<b>bold</b>" with 'apostrophes' and 3 <u>numbers</u>
  2. Then the table reads
    <th>head</th>name & 'more'
    <script>alert('cell')</script>a | b <br> "c"
  3. And the doc string reads
    <i>media</i>
    <script>alert('doc string')</script>
    </pre><b>outside the pre</b>

<a href="javascript:alert('rule description')">A rule's link</a>

An outline's <embed src="javascript:alert('outline description')">

  1. Given a user named "<script>alert('parameter')</script>"

  1. Given the style is "<style>body { display: none }</style>"

From the scenario

  1. Given "<who>" signs in as <who>

Runs once for each row of these examples: