Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Serialize in-memory attributes into deep DOM clone (#208)
* WIP: Spike to serialize into DOM clone * Small updates & sprinkling of docs * WIP: Introduce DOM class to handle all DOM operations * Add method docs, fix security error with CSSOM * Run lint Bye `let` & semi-colons :( * Fix integration test Introduce cheerio so we can parse the DOM string in the node tests. This is better than searching the entire DOM string for strings that we expect to be there. This gives us a jQuery like interface to pick elements & attributes out. * Setup empty test suite * Add types for cheerio * Write tests for input serialization * Adding CSSOM tests * Add doctype test & remove lint disable comment * Move tsconfig change to test config file * Use `cssRules` over `rules`, add CI browser config * Add error stub check _before_ the method is called This is to ensure the stub has never been called before we actually expect it to * Add options interface * Add more types * Fix comment typos * Write test for stabilizing both inputs & CSSOM * Only create input GUID once * Add more types * Add more types * Break CI cache, use NPM instead of yarn in CI * The final type down * No need to pass around a refrence of the DOM when stabilizing These methods are already mutating the cloned DOM. There's no need to capture it in a variable and return it from each stabilize method. It gives the illustion that it's not causing side-effects, but it really is. Let's make that explicit
- Loading branch information