Skip to content

Commit

Permalink
Alternate take for script enforcement. whatwg/dom#789 and whatwg/html…
Browse files Browse the repository at this point in the history
…#3052

As proposed by @annevk, add slots for script URL / text, populate them
when calling sink functions, and verify them when a script is prepared,
optionally running a default policy on a value read from the DOM if
it's different than the slot value.

It avoids integration points with DOM mutation algorithms, but we still
need to support script.setAttribute('src').
  • Loading branch information
koto committed Nov 8, 2019
1 parent 8fcc1c1 commit e544ec8
Show file tree
Hide file tree
Showing 2 changed files with 858 additions and 282 deletions.
Loading

0 comments on commit e544ec8

Please sign in to comment.