├── .github └── workflows │ └── ci.yml ├── .gitignore ├── .jshintrc ├── .npmignore ├── .travis.yml ├── CHANGELOG.md ├── LICENSE ├── README.md ├── dist ├── morphdom-esm.js ├── morphdom-factory.js ├── morphdom-umd.js ├── morphdom-umd.min.js └── morphdom.js ├── docs ├── old-benchmark.md └── virtual-dom.md ├── examples ├── .gitignore ├── README.md ├── index.marko ├── lifecycle-events │ ├── browser.json │ ├── client.js │ ├── remove.svg │ ├── style.css │ ├── template.marko │ └── todos.marko ├── package.json ├── server.js └── simple │ ├── browser.json │ ├── client.js │ ├── content-after.marko │ ├── content-before.marko │ ├── style.css │ └── template.marko ├── factory.js ├── index.d.ts ├── package.json ├── src ├── .jshintrc ├── index.js ├── morphAttrs.js ├── morphdom.js ├── specialElHandlers.js └── util.js └── test ├── .jshintrc ├── browser ├── benchmark-results.marko ├── benchmark.js ├── test-result.marko └── test.js ├── fixtures ├── autotest │ ├── attr-value-empty-string │ │ ├── from.html │ │ └── to.html │ ├── change-tagname-ids │ │ ├── from.html │ │ └── to.html │ ├── change-tagname │ │ ├── from.html │ │ └── to.html │ ├── data-table │ │ ├── from.html │ │ └── to.html │ ├── data-table2 │ │ ├── from.html │ │ └── to.html │ ├── equal │ │ ├── from.html │ │ └── to.html │ ├── id-change-tag-name │ │ ├── from.html │ │ └── to.html │ ├── ids-nested-2 │ │ ├── from.html │ │ └── to.html │ ├── ids-nested-3 │ │ ├── from.html │ │ └── to.html │ ├── ids-nested-4 │ │ ├── from.html │ │ └── to.html │ ├── ids-nested-5 │ │ ├── from.html │ │ └── to.html │ ├── ids-nested-6 │ │ ├── from.html │ │ └── to.html │ ├── ids-nested-7 │ │ ├── from.html │ │ └── to.html │ ├── ids-nested │ │ ├── from.html │ │ └── to.html │ ├── ids-prepend │ │ ├── from.html │ │ └── to.html │ ├── input-element-disabled │ │ ├── from.html │ │ ├── index.js │ │ └── to.html │ ├── input-element-enabled │ │ ├── from.html │ │ ├── index.js │ │ └── to.html │ ├── input-element │ │ ├── from.html │ │ └── to.html │ ├── large │ │ ├── from.html │ │ └── to.html │ ├── lengthen │ │ ├── from.html │ │ └── to.html │ ├── one │ │ ├── from.html │ │ └── to.html │ ├── reverse-ids │ │ ├── from.html │ │ └── to.html │ ├── reverse │ │ ├── from.html │ │ └── to.html │ ├── select-element-default │ │ ├── from.html │ │ ├── index.js │ │ └── to.html │ ├── select-element │ │ ├── from.html │ │ ├── index.js │ │ └── to.html │ ├── shorten │ │ ├── from.html │ │ └── to.html │ ├── simple-ids │ │ ├── from.html │ │ └── to.html │ ├── simple-text-el │ │ ├── from.html │ │ └── to.html │ ├── simple │ │ ├── from.html │ │ └── to.html │ ├── svg-append-new │ │ ├── from.html │ │ └── to.html │ ├── svg-append │ │ ├── from.html │ │ └── to.html │ ├── svg-no-default-namespace │ │ ├── from.html │ │ └── to.html │ ├── svg-xlink │ │ ├── from.html │ │ └── to.html │ ├── svg │ │ ├── from.html │ │ └── to.html │ ├── tag-to-text │ │ ├── from.html │ │ └── to.html │ ├── text-to-tag │ │ ├── from.html │ │ └── to.html │ ├── text-to-text │ │ ├── from.html │ │ └── to.html │ ├── textarea │ │ ├── from.html │ │ └── to.html │ ├── todomvc │ │ ├── from.html │ │ └── to.html │ ├── todomvc2 │ │ ├── from.html │ │ └── to.html │ └── two │ │ ├── from.html │ │ └── to.html ├── change-types │ ├── from.html │ └── to.html └── reverse-ids │ ├── from.html │ └── to.html └── mocha-headless ├── .gitignore ├── browser.json ├── mocha-browser-setup.js ├── run.js ├── style.css └── test-page.marko /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/.gitignore -------------------------------------------------------------------------------- /.jshintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/.jshintrc -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/.npmignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/README.md -------------------------------------------------------------------------------- /dist/morphdom-esm.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/dist/morphdom-esm.js -------------------------------------------------------------------------------- /dist/morphdom-factory.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/dist/morphdom-factory.js -------------------------------------------------------------------------------- /dist/morphdom-umd.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/dist/morphdom-umd.js -------------------------------------------------------------------------------- /dist/morphdom-umd.min.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/dist/morphdom-umd.min.js -------------------------------------------------------------------------------- /dist/morphdom.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/dist/morphdom.js -------------------------------------------------------------------------------- /docs/old-benchmark.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/docs/old-benchmark.md -------------------------------------------------------------------------------- /docs/virtual-dom.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/docs/virtual-dom.md -------------------------------------------------------------------------------- /examples/.gitignore: -------------------------------------------------------------------------------- 1 | /static -------------------------------------------------------------------------------- /examples/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/examples/README.md -------------------------------------------------------------------------------- /examples/index.marko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/examples/index.marko -------------------------------------------------------------------------------- /examples/lifecycle-events/browser.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/examples/lifecycle-events/browser.json -------------------------------------------------------------------------------- /examples/lifecycle-events/client.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/examples/lifecycle-events/client.js -------------------------------------------------------------------------------- /examples/lifecycle-events/remove.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/examples/lifecycle-events/remove.svg -------------------------------------------------------------------------------- /examples/lifecycle-events/style.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/examples/lifecycle-events/style.css -------------------------------------------------------------------------------- /examples/lifecycle-events/template.marko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/examples/lifecycle-events/template.marko -------------------------------------------------------------------------------- /examples/lifecycle-events/todos.marko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/examples/lifecycle-events/todos.marko -------------------------------------------------------------------------------- /examples/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "main": "./server.js" 3 | } -------------------------------------------------------------------------------- /examples/server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/examples/server.js -------------------------------------------------------------------------------- /examples/simple/browser.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/examples/simple/browser.json -------------------------------------------------------------------------------- /examples/simple/client.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/examples/simple/client.js -------------------------------------------------------------------------------- /examples/simple/content-after.marko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/examples/simple/content-after.marko -------------------------------------------------------------------------------- /examples/simple/content-before.marko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/examples/simple/content-before.marko -------------------------------------------------------------------------------- /examples/simple/style.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/examples/simple/style.css -------------------------------------------------------------------------------- /examples/simple/template.marko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/examples/simple/template.marko -------------------------------------------------------------------------------- /factory.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./dist/morphdom-factory'); -------------------------------------------------------------------------------- /index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/index.d.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/package.json -------------------------------------------------------------------------------- /src/.jshintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/src/.jshintrc -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/src/index.js -------------------------------------------------------------------------------- /src/morphAttrs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/src/morphAttrs.js -------------------------------------------------------------------------------- /src/morphdom.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/src/morphdom.js -------------------------------------------------------------------------------- /src/specialElHandlers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/src/specialElHandlers.js -------------------------------------------------------------------------------- /src/util.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/src/util.js -------------------------------------------------------------------------------- /test/.jshintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/test/.jshintrc -------------------------------------------------------------------------------- /test/browser/benchmark-results.marko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/test/browser/benchmark-results.marko -------------------------------------------------------------------------------- /test/browser/benchmark.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/test/browser/benchmark.js -------------------------------------------------------------------------------- /test/browser/test-result.marko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/test/browser/test-result.marko -------------------------------------------------------------------------------- /test/browser/test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/test/browser/test.js -------------------------------------------------------------------------------- /test/fixtures/autotest/attr-value-empty-string/from.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/test/fixtures/autotest/attr-value-empty-string/from.html -------------------------------------------------------------------------------- /test/fixtures/autotest/attr-value-empty-string/to.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/test/fixtures/autotest/attr-value-empty-string/to.html -------------------------------------------------------------------------------- /test/fixtures/autotest/change-tagname-ids/from.html: -------------------------------------------------------------------------------- 1 |
2 | italics 3 |
-------------------------------------------------------------------------------- /test/fixtures/autotest/change-tagname-ids/to.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/test/fixtures/autotest/change-tagname-ids/to.html -------------------------------------------------------------------------------- /test/fixtures/autotest/change-tagname/from.html: -------------------------------------------------------------------------------- 1 | italics -------------------------------------------------------------------------------- /test/fixtures/autotest/change-tagname/to.html: -------------------------------------------------------------------------------- 1 | bold -------------------------------------------------------------------------------- /test/fixtures/autotest/data-table/from.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/test/fixtures/autotest/data-table/from.html -------------------------------------------------------------------------------- /test/fixtures/autotest/data-table/to.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/test/fixtures/autotest/data-table/to.html -------------------------------------------------------------------------------- /test/fixtures/autotest/data-table2/from.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/test/fixtures/autotest/data-table2/from.html -------------------------------------------------------------------------------- /test/fixtures/autotest/data-table2/to.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/test/fixtures/autotest/data-table2/to.html -------------------------------------------------------------------------------- /test/fixtures/autotest/equal/from.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/test/fixtures/autotest/equal/from.html -------------------------------------------------------------------------------- /test/fixtures/autotest/equal/to.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/test/fixtures/autotest/equal/to.html -------------------------------------------------------------------------------- /test/fixtures/autotest/id-change-tag-name/from.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/test/fixtures/autotest/id-change-tag-name/from.html -------------------------------------------------------------------------------- /test/fixtures/autotest/id-change-tag-name/to.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/test/fixtures/autotest/id-change-tag-name/to.html -------------------------------------------------------------------------------- /test/fixtures/autotest/ids-nested-2/from.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/test/fixtures/autotest/ids-nested-2/from.html -------------------------------------------------------------------------------- /test/fixtures/autotest/ids-nested-2/to.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/test/fixtures/autotest/ids-nested-2/to.html -------------------------------------------------------------------------------- /test/fixtures/autotest/ids-nested-3/from.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrick-steele-idem/morphdom/HEAD/test/fixtures/autotest/ids-nested-3/from.html -------------------------------------------------------------------------------- /test/fixtures/autotest/ids-nested-3/to.html: -------------------------------------------------------------------------------- 1 |