Skip to content

Commit

Permalink
Alternate take for script enforcement. (#236)
Browse files Browse the repository at this point in the history
* Alternate take for script enforcement. whatwg/dom#789 and whatwg/html#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').

* Fix reviewer's comments.

* Adding a note to DOM issue.
  • Loading branch information
koto authored Nov 20, 2019
1 parent 3b6d4fe commit d24c6e3
Show file tree
Hide file tree
Showing 2 changed files with 839 additions and 263 deletions.
Loading

0 comments on commit d24c6e3

Please sign in to comment.