rust/tests/rustdoc/crate-version-escape.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
189 B
Rust
Raw Normal View History

//@ compile-flags: --crate-version=<script>alert("hi")</script> -Z unstable-options
#![crate_name = "foo"]
//@ has 'foo/index.html' '//*[@class="version"]' '<script>alert("hi")</script>'