jsdoctest 0.4.0

testing javascript injection
Documentation
  • Coverage
  • 100%
    1 out of 1 items documented0 out of 0 items with examples
  • Size
  • Source code size: 4.8 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.06 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • brson

A variety of tests for malicious code injection.

Everything here is safe to click (brson). Anyl local paths work on Win 10.

javascript links

js

reference js

Case matters:

upcase js

local links

local file

reference local file

inline html and scripts

an inline html that invokes a script:

an inline script:

inline html with script onclick: click me

funky images

js image:

js image

local file:

local image

local text file:

local text file

regular non-local image:

non-local image

non-local html served as image:

non-local html as image

non-local html served as gif (I actually can't trick GitHub inter serving this as non-html ContentType)

non-local html served as gif

non-local html served as gif (I actually can't trick GitHub inter serving this as non-html ContentType)

non-local html served as jpg

(I can't actually find a service that will serve a .jpg-named html as mimetype text/html - and the browser mime sniffer would probably figure it out anyway)