Feature: Hostile <script>alert("feature")</script> & 'friends'
A description with <img src=x onerror="alert('description')"> & <b>bold</b> & <i>
A background's <video src=x onerror="alert('background description')"></video>
- Given a user named "<script>alert('parameter')</script>"
Line one of <a href="javascript:alert('scenario description')">a link</a>
Line two with <!-- a comment --> and ]]>
- Given a user named "<script>alert('parameter')</script>"
From the scenario
- When the text is <i>italic</i> & "<b>bold</b>" with 'apostrophes' and 3 <u>numbers</u>
- Then the table reads
<th>head</th> name & 'more' <script>alert('cell')</script> a | b <br> "c" - 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>
- Given the style is "<style>body { display: none }</style>"
An outline's <embed src="javascript:alert('outline description')">
- Given a user named "<script>alert('parameter')</script>"
- Given the style is "<style>body { display: none }</style>"
From the scenario
- Given "<who>" signs in as <who>
Runs once for each row of these examples:
-
These examples' <details open ontoggle="alert('examples description')">
who <script>alert('row')</script> <img src=x onerror="alert('row')"> - Given "<script>alert('row')</script>" signs in as <script>alert('row')</script>
- Given "<img src=x onerror="alert('row')">" signs in as <img src=x onerror="alert('row')">