projen 0.98.31 → 0.98.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +1755 -475
- package/lib/ai-instructions.js +2 -2
- package/lib/awscdk/auto-discover.js +5 -5
- package/lib/awscdk/awscdk-app-java.js +1 -1
- package/lib/awscdk/awscdk-app-py.js +1 -1
- package/lib/awscdk/awscdk-app-ts.js +1 -1
- package/lib/awscdk/awscdk-construct.js +2 -2
- package/lib/awscdk/awscdk-deps-java.js +1 -1
- package/lib/awscdk/awscdk-deps-js.js +1 -1
- package/lib/awscdk/awscdk-deps-py.js +1 -1
- package/lib/awscdk/awscdk-deps.js +1 -1
- package/lib/awscdk/cdk-config.js +4 -4
- package/lib/awscdk/cdk-tasks.js +1 -1
- package/lib/awscdk/integration-test.js +1 -1
- package/lib/awscdk/internal.d.ts +1 -2
- package/lib/awscdk/lambda-extension.js +1 -1
- package/lib/awscdk/lambda-function.js +2 -2
- package/lib/awscdk/private/feature-flags-v2.const.d.ts +2 -3
- package/lib/awscdk/private/feature-flags-v2.const.js +4 -5
- package/lib/build/build-workflow.js +1 -1
- package/lib/cdk/auto-discover-base.js +2 -2
- package/lib/cdk/construct-lib.js +1 -1
- package/lib/cdk/integration-test-base.js +1 -1
- package/lib/cdk/jsii-docgen.js +1 -1
- package/lib/cdk/jsii-project.js +1 -1
- package/lib/cdk8s/auto-discover.js +2 -2
- package/lib/cdk8s/cdk8s-app-py.js +1 -1
- package/lib/cdk8s/cdk8s-app-ts.js +1 -1
- package/lib/cdk8s/cdk8s-construct.js +1 -1
- package/lib/cdk8s/cdk8s-deps-py.js +1 -1
- package/lib/cdk8s/cdk8s-deps.js +1 -1
- package/lib/cdk8s/integration-test.js +1 -1
- package/lib/cdktf/cdktf-construct.js +1 -1
- package/lib/circleci/circleci.js +1 -1
- package/lib/cli/index.js +6 -3
- package/lib/component.js +1 -1
- package/lib/dependencies.js +1 -1
- package/lib/dev-env.js +1 -1
- package/lib/docker-compose/docker-compose-service.js +1 -1
- package/lib/docker-compose/docker-compose.js +1 -1
- package/lib/file.js +1 -1
- package/lib/gitattributes.js +1 -1
- package/lib/github/actions-provider.js +1 -1
- package/lib/github/auto-approve.js +1 -1
- package/lib/github/auto-merge.js +1 -1
- package/lib/github/auto-queue.js +1 -1
- package/lib/github/dependabot.js +1 -1
- package/lib/github/github-credentials.js +1 -1
- package/lib/github/github-project.js +1 -1
- package/lib/github/github.js +1 -1
- package/lib/github/merge-queue.js +1 -1
- package/lib/github/mergify.js +1 -1
- package/lib/github/pr-template.js +1 -1
- package/lib/github/pull-request-backport.js +1 -1
- package/lib/github/pull-request-lint.js +1 -1
- package/lib/github/stale.js +1 -1
- package/lib/github/task-workflow-job.js +1 -1
- package/lib/github/task-workflow.js +1 -1
- package/lib/github/workflow-actions.js +1 -1
- package/lib/github/workflow-jobs.js +1 -1
- package/lib/github/workflow-steps.js +1 -1
- package/lib/github/workflows.js +1 -1
- package/lib/gitlab/configuration.js +1 -1
- package/lib/gitlab/gitlab-configuration.js +1 -1
- package/lib/gitlab/nested-configuration.js +1 -1
- package/lib/gitpod.js +1 -1
- package/lib/ignore-file.js +1 -1
- package/lib/ini.js +1 -1
- package/lib/java/java-project.js +1 -1
- package/lib/java/junit.js +1 -1
- package/lib/java/maven-compile.js +1 -1
- package/lib/java/maven-packaging.js +1 -1
- package/lib/java/maven-sample.js +1 -1
- package/lib/java/pom.js +2 -2
- package/lib/java/projenrc.js +1 -1
- package/lib/javascript/biome/biome-config.d.ts +126 -50
- package/lib/javascript/biome/biome-config.js +74 -39
- package/lib/javascript/biome/biome.js +1 -1
- package/lib/javascript/bundler.js +1 -1
- package/lib/javascript/eslint.js +1 -1
- package/lib/javascript/jest.js +4 -4
- package/lib/javascript/license-checker.js +1 -1
- package/lib/javascript/node-package.js +1 -1
- package/lib/javascript/node-project.js +1 -1
- package/lib/javascript/npm-config.js +1 -1
- package/lib/javascript/prettier.js +1 -1
- package/lib/javascript/projenrc.js +1 -1
- package/lib/javascript/typescript-config.js +2 -2
- package/lib/javascript/upgrade-dependencies.js +2 -2
- package/lib/javascript/yarnrc.js +1 -1
- package/lib/json-patch.js +1 -1
- package/lib/json.js +10 -2
- package/lib/license.js +1 -1
- package/lib/logger.js +1 -1
- package/lib/makefile.js +1 -1
- package/lib/object-file.js +1 -1
- package/lib/project-build.js +1 -1
- package/lib/project-tree.js +1 -1
- package/lib/project.js +1 -1
- package/lib/projects.js +1 -1
- package/lib/projenrc-json.js +2 -2
- package/lib/projenrc.js +1 -1
- package/lib/python/pip.js +1 -1
- package/lib/python/poetry.js +2 -2
- package/lib/python/projenrc.js +1 -1
- package/lib/python/pyproject-toml-file.js +1 -1
- package/lib/python/pytest-sample.js +1 -1
- package/lib/python/pytest.js +1 -1
- package/lib/python/python-project.js +1 -1
- package/lib/python/python-sample.js +1 -1
- package/lib/python/requirements-file.js +1 -1
- package/lib/python/setuppy.js +1 -1
- package/lib/python/setuptools.js +1 -1
- package/lib/python/uv-config.d.ts +437 -21
- package/lib/python/uv-config.js +437 -2
- package/lib/python/uv.js +1 -1
- package/lib/python/venv.js +1 -1
- package/lib/readme.js +1 -1
- package/lib/release/publisher.js +1 -1
- package/lib/release/release-trigger.js +1 -1
- package/lib/release/release.js +1 -1
- package/lib/renovatebot.js +1 -1
- package/lib/sample-file.js +2 -2
- package/lib/semver.js +1 -1
- package/lib/source-code.js +1 -1
- package/lib/task-runtime.js +1 -1
- package/lib/task.js +1 -1
- package/lib/tasks.js +1 -1
- package/lib/testing.js +1 -1
- package/lib/textfile.js +1 -1
- package/lib/toml.js +1 -1
- package/lib/typescript/projenrc-ts.js +1 -1
- package/lib/typescript/projenrc.js +1 -1
- package/lib/typescript/typescript-typedoc.js +1 -1
- package/lib/typescript/typescript.js +6 -6
- package/lib/version.js +2 -2
- package/lib/vscode/devcontainer.js +1 -1
- package/lib/vscode/extensions.js +1 -1
- package/lib/vscode/launch-config.js +1 -1
- package/lib/vscode/settings.js +1 -1
- package/lib/vscode/vscode.js +1 -1
- package/lib/web/next.js +3 -3
- package/lib/web/postcss.js +1 -1
- package/lib/web/react.js +4 -4
- package/lib/web/tailwind.js +1 -1
- package/lib/xmlfile.js +1 -1
- package/lib/yaml.js +1 -1
- package/node_modules/@oozcitak/dom/README.md +2 -4
- package/node_modules/@oozcitak/dom/lib/algorithm/AbortAlgorithm.js +7 -29
- package/node_modules/@oozcitak/dom/lib/algorithm/AbortAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/AttrAlgorithm.js +3 -3
- package/node_modules/@oozcitak/dom/lib/algorithm/AttrAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/BoundaryPointAlgorithm.js +14 -14
- package/node_modules/@oozcitak/dom/lib/algorithm/BoundaryPointAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/CharacterDataAlgorithm.js +40 -62
- package/node_modules/@oozcitak/dom/lib/algorithm/CharacterDataAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/CreateAlgorithm.js +53 -54
- package/node_modules/@oozcitak/dom/lib/algorithm/CreateAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/CustomElementAlgorithm.js +14 -14
- package/node_modules/@oozcitak/dom/lib/algorithm/CustomElementAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/DOMAlgorithm.js +29 -51
- package/node_modules/@oozcitak/dom/lib/algorithm/DOMAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/DOMTokenListAlgorithm.js +11 -11
- package/node_modules/@oozcitak/dom/lib/algorithm/DOMTokenListAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/DocumentAlgorithm.js +25 -63
- package/node_modules/@oozcitak/dom/lib/algorithm/DocumentAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/ElementAlgorithm.js +79 -85
- package/node_modules/@oozcitak/dom/lib/algorithm/ElementAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/EventAlgorithm.d.ts +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/EventAlgorithm.js +96 -153
- package/node_modules/@oozcitak/dom/lib/algorithm/EventAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/EventTargetAlgorithm.js +15 -37
- package/node_modules/@oozcitak/dom/lib/algorithm/EventTargetAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/MutationAlgorithm.js +229 -404
- package/node_modules/@oozcitak/dom/lib/algorithm/MutationAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/MutationObserverAlgorithm.js +47 -109
- package/node_modules/@oozcitak/dom/lib/algorithm/MutationObserverAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/NamespaceAlgorithm.d.ts +5 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/NamespaceAlgorithm.js +19 -19
- package/node_modules/@oozcitak/dom/lib/algorithm/NamespaceAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/NodeAlgorithm.js +69 -124
- package/node_modules/@oozcitak/dom/lib/algorithm/NodeAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/NodeIteratorAlgorithm.js +11 -11
- package/node_modules/@oozcitak/dom/lib/algorithm/NodeIteratorAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/OrderedSetAlgorithm.js +20 -72
- package/node_modules/@oozcitak/dom/lib/algorithm/OrderedSetAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/ParentNodeAlgorithm.js +12 -34
- package/node_modules/@oozcitak/dom/lib/algorithm/ParentNodeAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/RangeAlgorithm.js +183 -289
- package/node_modules/@oozcitak/dom/lib/algorithm/RangeAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/SelectorsAlgorithm.js +2 -2
- package/node_modules/@oozcitak/dom/lib/algorithm/SelectorsAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/ShadowTreeAlgorithm.js +65 -140
- package/node_modules/@oozcitak/dom/lib/algorithm/ShadowTreeAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/TextAlgorithm.js +63 -89
- package/node_modules/@oozcitak/dom/lib/algorithm/TextAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/TraversalAlgorithm.js +6 -6
- package/node_modules/@oozcitak/dom/lib/algorithm/TraversalAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/TreeAlgorithm.js +141 -208
- package/node_modules/@oozcitak/dom/lib/algorithm/TreeAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/TreeWalkerAlgorithm.js +13 -13
- package/node_modules/@oozcitak/dom/lib/algorithm/TreeWalkerAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/WebIDLAlgorithm.js +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/WebIDLAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/XMLAlgorithm.js +16 -16
- package/node_modules/@oozcitak/dom/lib/algorithm/XMLAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/index.js +42 -31
- package/node_modules/@oozcitak/dom/lib/algorithm/index.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/AbortControllerImpl.js +12 -15
- package/node_modules/@oozcitak/dom/lib/dom/AbortControllerImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/AbortSignalImpl.js +20 -43
- package/node_modules/@oozcitak/dom/lib/dom/AbortSignalImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/AbstractRangeImpl.js +20 -62
- package/node_modules/@oozcitak/dom/lib/dom/AbstractRangeImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/AttrImpl.js +53 -92
- package/node_modules/@oozcitak/dom/lib/dom/AttrImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/CDATASectionImpl.js +13 -27
- package/node_modules/@oozcitak/dom/lib/dom/CDATASectionImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/CharacterDataImpl.js +40 -88
- package/node_modules/@oozcitak/dom/lib/dom/CharacterDataImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/ChildNodeImpl.js +41 -55
- package/node_modules/@oozcitak/dom/lib/dom/ChildNodeImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/CommentImpl.js +13 -28
- package/node_modules/@oozcitak/dom/lib/dom/CommentImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/CustomEventImpl.js +14 -36
- package/node_modules/@oozcitak/dom/lib/dom/CustomEventImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/DOMException.js +114 -204
- package/node_modules/@oozcitak/dom/lib/dom/DOMException.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/DOMImpl.js +51 -68
- package/node_modules/@oozcitak/dom/lib/dom/DOMImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/DOMImplementationImpl.js +32 -31
- package/node_modules/@oozcitak/dom/lib/dom/DOMImplementationImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/DOMTokenListImpl.js +105 -163
- package/node_modules/@oozcitak/dom/lib/dom/DOMTokenListImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/DocumentFragmentImpl.d.ts +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/DocumentFragmentImpl.js +30 -73
- package/node_modules/@oozcitak/dom/lib/dom/DocumentFragmentImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/DocumentImpl.d.ts +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/DocumentImpl.js +198 -330
- package/node_modules/@oozcitak/dom/lib/dom/DocumentImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/DocumentOrShadowRootImpl.js +3 -5
- package/node_modules/@oozcitak/dom/lib/dom/DocumentOrShadowRootImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/DocumentTypeImpl.js +29 -75
- package/node_modules/@oozcitak/dom/lib/dom/DocumentTypeImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/ElementImpl.d.ts +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/ElementImpl.js +234 -393
- package/node_modules/@oozcitak/dom/lib/dom/ElementImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/EventImpl.js +89 -137
- package/node_modules/@oozcitak/dom/lib/dom/EventImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/EventTargetImpl.js +32 -57
- package/node_modules/@oozcitak/dom/lib/dom/EventTargetImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/HTMLCollectionImpl.js +58 -64
- package/node_modules/@oozcitak/dom/lib/dom/HTMLCollectionImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/MutationObserverImpl.js +36 -88
- package/node_modules/@oozcitak/dom/lib/dom/MutationObserverImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/MutationRecordImpl.js +33 -60
- package/node_modules/@oozcitak/dom/lib/dom/MutationRecordImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/NamedNodeMapImpl.js +33 -47
- package/node_modules/@oozcitak/dom/lib/dom/NamedNodeMapImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/NodeFilterImpl.js +58 -42
- package/node_modules/@oozcitak/dom/lib/dom/NodeFilterImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/NodeImpl.d.ts +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/NodeImpl.js +375 -471
- package/node_modules/@oozcitak/dom/lib/dom/NodeImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/NodeIteratorImpl.js +29 -49
- package/node_modules/@oozcitak/dom/lib/dom/NodeIteratorImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/NodeListImpl.js +69 -97
- package/node_modules/@oozcitak/dom/lib/dom/NodeListImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/NodeListStaticImpl.js +66 -93
- package/node_modules/@oozcitak/dom/lib/dom/NodeListStaticImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/NonDocumentTypeChildNodeImpl.js +33 -43
- package/node_modules/@oozcitak/dom/lib/dom/NonDocumentTypeChildNodeImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/NonElementParentNodeImpl.js +9 -11
- package/node_modules/@oozcitak/dom/lib/dom/NonElementParentNodeImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/ParentNodeImpl.js +73 -121
- package/node_modules/@oozcitak/dom/lib/dom/ParentNodeImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/ProcessingInstructionImpl.js +19 -36
- package/node_modules/@oozcitak/dom/lib/dom/ProcessingInstructionImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/RangeImpl.js +174 -241
- package/node_modules/@oozcitak/dom/lib/dom/RangeImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/ShadowRootImpl.js +22 -43
- package/node_modules/@oozcitak/dom/lib/dom/ShadowRootImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/SlotableImpl.js +13 -25
- package/node_modules/@oozcitak/dom/lib/dom/SlotableImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/StaticRangeImpl.js +12 -25
- package/node_modules/@oozcitak/dom/lib/dom/StaticRangeImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/TextImpl.js +34 -80
- package/node_modules/@oozcitak/dom/lib/dom/TextImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/TraverserImpl.js +15 -23
- package/node_modules/@oozcitak/dom/lib/dom/TraverserImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/TreeWalkerImpl.js +46 -64
- package/node_modules/@oozcitak/dom/lib/dom/TreeWalkerImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/WindowImpl.js +21 -42
- package/node_modules/@oozcitak/dom/lib/dom/WindowImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/XMLDocumentImpl.js +6 -20
- package/node_modules/@oozcitak/dom/lib/dom/XMLDocumentImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/index.js +92 -91
- package/node_modules/@oozcitak/dom/lib/dom/index.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/interfaces.d.ts +28 -25
- package/node_modules/@oozcitak/dom/lib/dom/interfaces.js +9 -7
- package/node_modules/@oozcitak/dom/lib/dom/interfaces.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/index.js +5 -4
- package/node_modules/@oozcitak/dom/lib/index.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/parser/DOMParserImpl.js +13 -15
- package/node_modules/@oozcitak/dom/lib/parser/DOMParserImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/parser/XMLParserImpl.js +78 -128
- package/node_modules/@oozcitak/dom/lib/parser/XMLParserImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/parser/XMLStringLexer.js +107 -123
- package/node_modules/@oozcitak/dom/lib/parser/XMLStringLexer.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/parser/index.js +2 -1
- package/node_modules/@oozcitak/dom/lib/parser/index.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/parser/interfaces.d.ts +2 -2
- package/node_modules/@oozcitak/dom/lib/parser/interfaces.js +2 -1
- package/node_modules/@oozcitak/dom/lib/parser/interfaces.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/serializer/LocalNameSet.js +10 -12
- package/node_modules/@oozcitak/dom/lib/serializer/LocalNameSet.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/serializer/NamespacePrefixMap.js +23 -25
- package/node_modules/@oozcitak/dom/lib/serializer/NamespacePrefixMap.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/serializer/XMLSerializerImpl.js +405 -517
- package/node_modules/@oozcitak/dom/lib/serializer/XMLSerializerImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/serializer/index.js +2 -1
- package/node_modules/@oozcitak/dom/lib/serializer/index.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/util/Cast.js +6 -8
- package/node_modules/@oozcitak/dom/lib/util/Cast.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/util/EmptySet.d.ts +13 -5
- package/node_modules/@oozcitak/dom/lib/util/EmptySet.js +33 -46
- package/node_modules/@oozcitak/dom/lib/util/EmptySet.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/util/Guard.js +47 -49
- package/node_modules/@oozcitak/dom/lib/util/Guard.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/util/index.js +4 -3
- package/node_modules/@oozcitak/dom/lib/util/index.js.map +1 -1
- package/node_modules/@oozcitak/dom/package.json +14 -41
- package/node_modules/@oozcitak/infra/LICENSE +21 -21
- package/node_modules/@oozcitak/infra/README.md +11 -13
- package/node_modules/@oozcitak/infra/lib/Base64.js +3 -3
- package/node_modules/@oozcitak/infra/lib/Base64.js.map +1 -1
- package/node_modules/@oozcitak/infra/lib/Byte.js +1 -1
- package/node_modules/@oozcitak/infra/lib/Byte.js.map +1 -1
- package/node_modules/@oozcitak/infra/lib/ByteSequence.js +19 -39
- package/node_modules/@oozcitak/infra/lib/ByteSequence.js.map +1 -1
- package/node_modules/@oozcitak/infra/lib/CodePoints.js +1 -0
- package/node_modules/@oozcitak/infra/lib/CodePoints.js.map +1 -1
- package/node_modules/@oozcitak/infra/lib/JSON.d.ts +1 -1
- package/node_modules/@oozcitak/infra/lib/JSON.js +18 -40
- package/node_modules/@oozcitak/infra/lib/JSON.js.map +1 -1
- package/node_modules/@oozcitak/infra/lib/List.d.ts +4 -4
- package/node_modules/@oozcitak/infra/lib/List.js +49 -173
- package/node_modules/@oozcitak/infra/lib/List.js.map +1 -1
- package/node_modules/@oozcitak/infra/lib/Map.d.ts +1 -1
- package/node_modules/@oozcitak/infra/lib/Map.js +43 -177
- package/node_modules/@oozcitak/infra/lib/Map.js.map +1 -1
- package/node_modules/@oozcitak/infra/lib/Namespace.js +1 -0
- package/node_modules/@oozcitak/infra/lib/Namespace.js.map +1 -1
- package/node_modules/@oozcitak/infra/lib/Queue.d.ts +1 -1
- package/node_modules/@oozcitak/infra/lib/Queue.js +2 -2
- package/node_modules/@oozcitak/infra/lib/Queue.js.map +1 -1
- package/node_modules/@oozcitak/infra/lib/Set.d.ts +1 -1
- package/node_modules/@oozcitak/infra/lib/Set.js +76 -254
- package/node_modules/@oozcitak/infra/lib/Set.js.map +1 -1
- package/node_modules/@oozcitak/infra/lib/Stack.d.ts +1 -1
- package/node_modules/@oozcitak/infra/lib/Stack.js +2 -2
- package/node_modules/@oozcitak/infra/lib/Stack.js.map +1 -1
- package/node_modules/@oozcitak/infra/lib/String.d.ts +2 -2
- package/node_modules/@oozcitak/infra/lib/String.js +75 -131
- package/node_modules/@oozcitak/infra/lib/String.js.map +1 -1
- package/node_modules/@oozcitak/infra/lib/index.js +46 -19
- package/node_modules/@oozcitak/infra/lib/index.js.map +1 -1
- package/node_modules/@oozcitak/infra/package.json +41 -54
- package/node_modules/@oozcitak/url/LICENSE +21 -21
- package/node_modules/@oozcitak/url/README.md +25 -27
- package/node_modules/@oozcitak/url/lib/URLAlgorithm.d.ts +3 -3
- package/node_modules/@oozcitak/url/lib/URLAlgorithm.js +287 -460
- package/node_modules/@oozcitak/url/lib/URLAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/url/lib/URLImpl.js +285 -331
- package/node_modules/@oozcitak/url/lib/URLImpl.js.map +1 -1
- package/node_modules/@oozcitak/url/lib/URLSearchParamsImpl.d.ts +1 -1
- package/node_modules/@oozcitak/url/lib/URLSearchParamsImpl.js +71 -190
- package/node_modules/@oozcitak/url/lib/URLSearchParamsImpl.js.map +1 -1
- package/node_modules/@oozcitak/url/lib/index.js +3 -2
- package/node_modules/@oozcitak/url/lib/index.js.map +1 -1
- package/node_modules/@oozcitak/url/lib/interfaces.d.ts +2 -2
- package/node_modules/@oozcitak/url/lib/interfaces.js +2 -1
- package/node_modules/@oozcitak/url/lib/interfaces.js.map +1 -1
- package/node_modules/@oozcitak/url/package.json +42 -55
- package/node_modules/@oozcitak/util/LICENSE +21 -21
- package/node_modules/@oozcitak/util/README.md +8 -10
- package/node_modules/@oozcitak/util/lib/CompareCache.js +12 -12
- package/node_modules/@oozcitak/util/lib/CompareCache.js.map +1 -1
- package/node_modules/@oozcitak/util/lib/FixedSizeSet.d.ts +6 -6
- package/node_modules/@oozcitak/util/lib/FixedSizeSet.js +42 -117
- package/node_modules/@oozcitak/util/lib/FixedSizeSet.js.map +1 -1
- package/node_modules/@oozcitak/util/lib/Lazy.js +17 -19
- package/node_modules/@oozcitak/util/lib/Lazy.js.map +1 -1
- package/node_modules/@oozcitak/util/lib/ObjectCache.d.ts +4 -4
- package/node_modules/@oozcitak/util/lib/ObjectCache.js +44 -118
- package/node_modules/@oozcitak/util/lib/ObjectCache.js.map +1 -1
- package/node_modules/@oozcitak/util/lib/StringWalker.js +41 -47
- package/node_modules/@oozcitak/util/lib/StringWalker.js.map +1 -1
- package/node_modules/@oozcitak/util/lib/index.d.ts +23 -25
- package/node_modules/@oozcitak/util/lib/index.js +62 -88
- package/node_modules/@oozcitak/util/lib/index.js.map +1 -1
- package/node_modules/@oozcitak/util/package.json +37 -50
- package/node_modules/argparse/LICENSE +254 -0
- package/node_modules/argparse/README.md +84 -0
- package/node_modules/argparse/argparse.js +3707 -0
- package/node_modules/argparse/lib/sub.js +67 -0
- package/node_modules/argparse/lib/textwrap.js +440 -0
- package/node_modules/argparse/package.json +31 -0
- package/node_modules/{xmlbuilder2/node_modules/js-yaml → js-yaml}/README.md +36 -88
- package/node_modules/{xmlbuilder2/node_modules/js-yaml → js-yaml}/bin/js-yaml.js +17 -23
- package/node_modules/js-yaml/dist/js-yaml.js +3880 -0
- package/node_modules/js-yaml/dist/js-yaml.min.js +2 -0
- package/node_modules/{xmlbuilder2/node_modules/js-yaml/dist/js-yaml.js → js-yaml/dist/js-yaml.mjs} +2926 -3075
- package/node_modules/js-yaml/index.js +47 -0
- package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/dumper.js +205 -90
- package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/exception.js +22 -10
- package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/loader.js +149 -76
- package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/schema/core.js +1 -8
- package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js → js-yaml/lib/schema/default.js} +1 -7
- package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/schema/json.js +1 -7
- package/node_modules/js-yaml/lib/schema.js +121 -0
- package/node_modules/js-yaml/lib/snippet.js +101 -0
- package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/binary.js +4 -17
- package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/float.js +2 -21
- package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/int.js +18 -35
- package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/null.js +2 -1
- package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type.js +14 -9
- package/node_modules/js-yaml/package.json +66 -0
- package/node_modules/xmlbuilder2/README.md +8 -7
- package/node_modules/xmlbuilder2/lib/builder/BuilderFunctions.js +36 -37
- package/node_modules/xmlbuilder2/lib/builder/BuilderFunctions.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/builder/BuilderFunctionsCB.js +3 -3
- package/node_modules/xmlbuilder2/lib/builder/BuilderFunctionsCB.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/builder/XMLBuilderCBImpl.d.ts +0 -1
- package/node_modules/xmlbuilder2/lib/builder/XMLBuilderCBImpl.js +235 -333
- package/node_modules/xmlbuilder2/lib/builder/XMLBuilderCBImpl.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/builder/XMLBuilderImpl.js +271 -371
- package/node_modules/xmlbuilder2/lib/builder/XMLBuilderImpl.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/builder/dom.js +13 -13
- package/node_modules/xmlbuilder2/lib/builder/dom.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/builder/index.js +9 -8
- package/node_modules/xmlbuilder2/lib/builder/index.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/constants.js +1 -0
- package/node_modules/xmlbuilder2/lib/constants.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/index.js +7 -6
- package/node_modules/xmlbuilder2/lib/index.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/interfaces.d.ts +25 -24
- package/node_modules/xmlbuilder2/lib/interfaces.js +1 -0
- package/node_modules/xmlbuilder2/lib/interfaces.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/readers/BaseReader.js +53 -56
- package/node_modules/xmlbuilder2/lib/readers/BaseReader.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/readers/JSONReader.js +7 -24
- package/node_modules/xmlbuilder2/lib/readers/JSONReader.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/readers/ObjectReader.js +59 -77
- package/node_modules/xmlbuilder2/lib/readers/ObjectReader.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/readers/XMLReader.js +61 -126
- package/node_modules/xmlbuilder2/lib/readers/XMLReader.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/readers/YAMLReader.js +9 -26
- package/node_modules/xmlbuilder2/lib/readers/YAMLReader.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/readers/index.js +5 -4
- package/node_modules/xmlbuilder2/lib/readers/index.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/writers/BaseCBWriter.d.ts +1 -0
- package/node_modules/xmlbuilder2/lib/writers/BaseCBWriter.js +14 -8
- package/node_modules/xmlbuilder2/lib/writers/BaseCBWriter.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/writers/BaseWriter.js +474 -609
- package/node_modules/xmlbuilder2/lib/writers/BaseWriter.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/writers/JSONCBWriter.js +48 -64
- package/node_modules/xmlbuilder2/lib/writers/JSONCBWriter.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/writers/JSONWriter.js +54 -95
- package/node_modules/xmlbuilder2/lib/writers/JSONWriter.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/writers/MapWriter.js +21 -36
- package/node_modules/xmlbuilder2/lib/writers/MapWriter.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/writers/ObjectWriter.js +131 -166
- package/node_modules/xmlbuilder2/lib/writers/ObjectWriter.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/writers/XMLCBWriter.d.ts +1 -1
- package/node_modules/xmlbuilder2/lib/writers/XMLCBWriter.js +42 -56
- package/node_modules/xmlbuilder2/lib/writers/XMLCBWriter.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/writers/XMLWriter.js +48 -62
- package/node_modules/xmlbuilder2/lib/writers/XMLWriter.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/writers/YAMLCBWriter.js +43 -59
- package/node_modules/xmlbuilder2/lib/writers/YAMLCBWriter.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/writers/YAMLWriter.js +49 -89
- package/node_modules/xmlbuilder2/lib/writers/YAMLWriter.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/writers/index.js +6 -5
- package/node_modules/xmlbuilder2/lib/writers/index.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/xmlbuilder2.min.js +2 -8
- package/node_modules/xmlbuilder2/lib/xmlbuilder2.min.js.LICENSE.txt +10 -0
- package/node_modules/xmlbuilder2/package.json +34 -52
- package/package.json +8 -13
- package/node_modules/sprintf-js/.npmignore +0 -1
- package/node_modules/sprintf-js/LICENSE +0 -24
- package/node_modules/sprintf-js/README.md +0 -88
- package/node_modules/sprintf-js/bower.json +0 -14
- package/node_modules/sprintf-js/demo/angular.html +0 -20
- package/node_modules/sprintf-js/dist/angular-sprintf.min.js +0 -4
- package/node_modules/sprintf-js/dist/angular-sprintf.min.js.map +0 -1
- package/node_modules/sprintf-js/dist/angular-sprintf.min.map +0 -1
- package/node_modules/sprintf-js/dist/sprintf.min.js +0 -4
- package/node_modules/sprintf-js/dist/sprintf.min.js.map +0 -1
- package/node_modules/sprintf-js/dist/sprintf.min.map +0 -1
- package/node_modules/sprintf-js/gruntfile.js +0 -36
- package/node_modules/sprintf-js/package.json +0 -22
- package/node_modules/sprintf-js/src/angular-sprintf.js +0 -18
- package/node_modules/sprintf-js/src/sprintf.js +0 -208
- package/node_modules/sprintf-js/test/test.js +0 -82
- package/node_modules/xmlbuilder2/node_modules/argparse/LICENSE +0 -21
- package/node_modules/xmlbuilder2/node_modules/argparse/README.md +0 -257
- package/node_modules/xmlbuilder2/node_modules/argparse/index.js +0 -3
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/append/constant.js +0 -47
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/append.js +0 -53
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/count.js +0 -40
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/help.js +0 -47
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/store/constant.js +0 -43
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/store/false.js +0 -27
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/store/true.js +0 -26
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/store.js +0 -50
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/subparsers.js +0 -149
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/version.js +0 -47
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/action.js +0 -146
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/action_container.js +0 -482
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/argparse.js +0 -14
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/argument/error.js +0 -50
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/argument/exclusive.js +0 -54
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/argument/group.js +0 -75
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/argument_parser.js +0 -1161
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/const.js +0 -21
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/help/added_formatters.js +0 -87
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/help/formatter.js +0 -795
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/namespace.js +0 -76
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/utils.js +0 -57
- package/node_modules/xmlbuilder2/node_modules/argparse/package.json +0 -34
- package/node_modules/xmlbuilder2/node_modules/js-yaml/dist/js-yaml.min.js +0 -1
- package/node_modules/xmlbuilder2/node_modules/js-yaml/index.js +0 -7
- package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/mark.js +0 -76
- package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/schema/default_full.js +0 -25
- package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/schema.js +0 -108
- package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/js/function.js +0 -93
- package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js +0 -60
- package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js +0 -28
- package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml.js +0 -39
- package/node_modules/xmlbuilder2/node_modules/js-yaml/package.json +0 -49
- /package/node_modules/{xmlbuilder2/node_modules/js-yaml → js-yaml}/LICENSE +0 -0
- /package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/common.js +0 -0
- /package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/schema/failsafe.js +0 -0
- /package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/bool.js +0 -0
- /package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/map.js +0 -0
- /package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/merge.js +0 -0
- /package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/omap.js +0 -0
- /package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/pairs.js +0 -0
- /package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/seq.js +0 -0
- /package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/set.js +0 -0
- /package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/str.js +0 -0
- /package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/timestamp.js +0 -0
- /package/node_modules/xmlbuilder2/{LICENSE → LICENSE.txt} +0 -0
|
@@ -1,49 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __values = (this && this.__values) || function(o) {
|
|
3
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
4
|
-
if (m) return m.call(o);
|
|
5
|
-
if (o && typeof o.length === "number") return {
|
|
6
|
-
next: function () {
|
|
7
|
-
if (o && i >= o.length) o = void 0;
|
|
8
|
-
return { value: o && o[i++], done: !o };
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
12
|
-
};
|
|
13
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
14
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
15
|
-
if (!m) return o;
|
|
16
|
-
var i = m.call(o), r, ar = [], e;
|
|
17
|
-
try {
|
|
18
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
19
|
-
}
|
|
20
|
-
catch (error) { e = { error: error }; }
|
|
21
|
-
finally {
|
|
22
|
-
try {
|
|
23
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
24
|
-
}
|
|
25
|
-
finally { if (e) throw e.error; }
|
|
26
|
-
}
|
|
27
|
-
return ar;
|
|
28
|
-
};
|
|
29
|
-
var __spread = (this && this.__spread) || function () {
|
|
30
|
-
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
|
|
31
|
-
return ar;
|
|
32
|
-
};
|
|
33
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
3
|
+
exports.mutation_ensurePreInsertionValidity = mutation_ensurePreInsertionValidity;
|
|
4
|
+
exports.mutation_preInsert = mutation_preInsert;
|
|
5
|
+
exports.mutation_insert = mutation_insert;
|
|
6
|
+
exports.mutation_append = mutation_append;
|
|
7
|
+
exports.mutation_replace = mutation_replace;
|
|
8
|
+
exports.mutation_replaceAll = mutation_replaceAll;
|
|
9
|
+
exports.mutation_preRemove = mutation_preRemove;
|
|
10
|
+
exports.mutation_remove = mutation_remove;
|
|
11
|
+
const DOMImpl_1 = require("../dom/DOMImpl");
|
|
12
|
+
const DOMException_1 = require("../dom/DOMException");
|
|
13
|
+
const interfaces_1 = require("../dom/interfaces");
|
|
14
|
+
const util_1 = require("../util");
|
|
15
|
+
const util_2 = require("@oozcitak/util");
|
|
16
|
+
const infra_1 = require("@oozcitak/infra");
|
|
17
|
+
const CustomElementAlgorithm_1 = require("./CustomElementAlgorithm");
|
|
18
|
+
const TreeAlgorithm_1 = require("./TreeAlgorithm");
|
|
19
|
+
const NodeIteratorAlgorithm_1 = require("./NodeIteratorAlgorithm");
|
|
20
|
+
const ShadowTreeAlgorithm_1 = require("./ShadowTreeAlgorithm");
|
|
21
|
+
const MutationObserverAlgorithm_1 = require("./MutationObserverAlgorithm");
|
|
22
|
+
const DOMAlgorithm_1 = require("./DOMAlgorithm");
|
|
23
|
+
const DocumentAlgorithm_1 = require("./DocumentAlgorithm");
|
|
47
24
|
/**
|
|
48
25
|
* Ensures pre-insertion validity of a node into a parent before a
|
|
49
26
|
* child.
|
|
@@ -53,10 +30,9 @@ var DocumentAlgorithm_1 = require("./DocumentAlgorithm");
|
|
|
53
30
|
* @param child - child node to insert node before
|
|
54
31
|
*/
|
|
55
32
|
function mutation_ensurePreInsertionValidity(node, parent, child) {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
var childNodeType = child ? child._nodeType : null;
|
|
33
|
+
const parentNodeType = parent._nodeType;
|
|
34
|
+
const nodeNodeType = node._nodeType;
|
|
35
|
+
const childNodeType = child ? child._nodeType : null;
|
|
60
36
|
/**
|
|
61
37
|
* 1. If parent is not a Document, DocumentFragment, or Element node,
|
|
62
38
|
* throw a "HierarchyRequestError" DOMException.
|
|
@@ -64,19 +40,19 @@ function mutation_ensurePreInsertionValidity(node, parent, child) {
|
|
|
64
40
|
if (parentNodeType !== interfaces_1.NodeType.Document &&
|
|
65
41
|
parentNodeType !== interfaces_1.NodeType.DocumentFragment &&
|
|
66
42
|
parentNodeType !== interfaces_1.NodeType.Element)
|
|
67
|
-
throw new DOMException_1.HierarchyRequestError(
|
|
43
|
+
throw new DOMException_1.HierarchyRequestError(`Only document, document fragment and element nodes can contain child nodes. Parent node is ${parent.nodeName}.`);
|
|
68
44
|
/**
|
|
69
45
|
* 2. If node is a host-including inclusive ancestor of parent, throw a
|
|
70
46
|
* "HierarchyRequestError" DOMException.
|
|
71
47
|
*/
|
|
72
|
-
if (TreeAlgorithm_1.tree_isHostIncludingAncestorOf(parent, node, true))
|
|
73
|
-
throw new DOMException_1.HierarchyRequestError(
|
|
48
|
+
if ((0, TreeAlgorithm_1.tree_isHostIncludingAncestorOf)(parent, node, true))
|
|
49
|
+
throw new DOMException_1.HierarchyRequestError(`The node to be inserted cannot be an inclusive ancestor of parent node. Node is ${node.nodeName}, parent node is ${parent.nodeName}.`);
|
|
74
50
|
/**
|
|
75
51
|
* 3. If child is not null and its parent is not parent, then throw a
|
|
76
52
|
* "NotFoundError" DOMException.
|
|
77
53
|
*/
|
|
78
54
|
if (child !== null && child._parent !== parent)
|
|
79
|
-
throw new DOMException_1.NotFoundError(
|
|
55
|
+
throw new DOMException_1.NotFoundError(`The reference child node cannot be found under parent node. Child node is ${child.nodeName}, parent node is ${parent.nodeName}.`);
|
|
80
56
|
/**
|
|
81
57
|
* 4. If node is not a DocumentFragment, DocumentType, Element, Text,
|
|
82
58
|
* ProcessingInstruction, or Comment node, throw a "HierarchyRequestError"
|
|
@@ -89,7 +65,7 @@ function mutation_ensurePreInsertionValidity(node, parent, child) {
|
|
|
89
65
|
nodeNodeType !== interfaces_1.NodeType.ProcessingInstruction &&
|
|
90
66
|
nodeNodeType !== interfaces_1.NodeType.CData &&
|
|
91
67
|
nodeNodeType !== interfaces_1.NodeType.Comment)
|
|
92
|
-
throw new DOMException_1.HierarchyRequestError(
|
|
68
|
+
throw new DOMException_1.HierarchyRequestError(`Only document fragment, document type, element, text, processing instruction, cdata section or comment nodes can be inserted. Node is ${node.nodeName}.`);
|
|
93
69
|
/**
|
|
94
70
|
* 5. If either node is a Text node and parent is a document, or node is a
|
|
95
71
|
* doctype and parent is not a document, throw a "HierarchyRequestError"
|
|
@@ -97,10 +73,10 @@ function mutation_ensurePreInsertionValidity(node, parent, child) {
|
|
|
97
73
|
*/
|
|
98
74
|
if (nodeNodeType === interfaces_1.NodeType.Text &&
|
|
99
75
|
parentNodeType === interfaces_1.NodeType.Document)
|
|
100
|
-
throw new DOMException_1.HierarchyRequestError(
|
|
76
|
+
throw new DOMException_1.HierarchyRequestError(`Cannot insert a text node as a child of a document node. Node is ${node.nodeName}.`);
|
|
101
77
|
if (nodeNodeType === interfaces_1.NodeType.DocumentType &&
|
|
102
78
|
parentNodeType !== interfaces_1.NodeType.Document)
|
|
103
|
-
throw new DOMException_1.HierarchyRequestError(
|
|
79
|
+
throw new DOMException_1.HierarchyRequestError(`A document type node can only be inserted under a document node. Parent node is ${parent.nodeName}.`);
|
|
104
80
|
/**
|
|
105
81
|
* 6. If parent is a document, and any of the statements below, switched on
|
|
106
82
|
* node, are true, throw a "HierarchyRequestError" DOMException.
|
|
@@ -118,114 +94,73 @@ function mutation_ensurePreInsertionValidity(node, parent, child) {
|
|
|
118
94
|
*/
|
|
119
95
|
if (parentNodeType === interfaces_1.NodeType.Document) {
|
|
120
96
|
if (nodeNodeType === interfaces_1.NodeType.DocumentFragment) {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
else if (childNode._nodeType === interfaces_1.NodeType.Text)
|
|
128
|
-
throw new DOMException_1.HierarchyRequestError("Cannot insert text a node as a child of a document node. Node is " + childNode.nodeName + ".");
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
132
|
-
finally {
|
|
133
|
-
try {
|
|
134
|
-
if (_f && !_f.done && (_a = _e.return)) _a.call(_e);
|
|
135
|
-
}
|
|
136
|
-
finally { if (e_1) throw e_1.error; }
|
|
97
|
+
let eleCount = 0;
|
|
98
|
+
for (const childNode of node._children) {
|
|
99
|
+
if (childNode._nodeType === interfaces_1.NodeType.Element)
|
|
100
|
+
eleCount++;
|
|
101
|
+
else if (childNode._nodeType === interfaces_1.NodeType.Text)
|
|
102
|
+
throw new DOMException_1.HierarchyRequestError(`Cannot insert text a node as a child of a document node. Node is ${childNode.nodeName}.`);
|
|
137
103
|
}
|
|
138
104
|
if (eleCount > 1) {
|
|
139
|
-
throw new DOMException_1.HierarchyRequestError(
|
|
105
|
+
throw new DOMException_1.HierarchyRequestError(`A document node can only have one document element node. Document fragment to be inserted has ${eleCount} element nodes.`);
|
|
140
106
|
}
|
|
141
107
|
else if (eleCount === 1) {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
if (ele._nodeType === interfaces_1.NodeType.Element)
|
|
146
|
-
throw new DOMException_1.HierarchyRequestError("The document node already has a document element node.");
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
150
|
-
finally {
|
|
151
|
-
try {
|
|
152
|
-
if (_h && !_h.done && (_b = _g.return)) _b.call(_g);
|
|
153
|
-
}
|
|
154
|
-
finally { if (e_2) throw e_2.error; }
|
|
108
|
+
for (const ele of parent._children) {
|
|
109
|
+
if (ele._nodeType === interfaces_1.NodeType.Element)
|
|
110
|
+
throw new DOMException_1.HierarchyRequestError(`The document node already has a document element node.`);
|
|
155
111
|
}
|
|
156
112
|
if (child) {
|
|
157
113
|
if (childNodeType === interfaces_1.NodeType.DocumentType)
|
|
158
|
-
throw new DOMException_1.HierarchyRequestError(
|
|
159
|
-
|
|
114
|
+
throw new DOMException_1.HierarchyRequestError(`Cannot insert an element node before a document type node.`);
|
|
115
|
+
let doctypeChild = child._nextSibling;
|
|
160
116
|
while (doctypeChild) {
|
|
161
117
|
if (doctypeChild._nodeType === interfaces_1.NodeType.DocumentType)
|
|
162
|
-
throw new DOMException_1.HierarchyRequestError(
|
|
118
|
+
throw new DOMException_1.HierarchyRequestError(`Cannot insert an element node before a document type node.`);
|
|
163
119
|
doctypeChild = doctypeChild._nextSibling;
|
|
164
120
|
}
|
|
165
121
|
}
|
|
166
122
|
}
|
|
167
123
|
}
|
|
168
124
|
else if (nodeNodeType === interfaces_1.NodeType.Element) {
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
if (ele._nodeType === interfaces_1.NodeType.Element)
|
|
173
|
-
throw new DOMException_1.HierarchyRequestError("Document already has a document element node. Node is " + node.nodeName + ".");
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
177
|
-
finally {
|
|
178
|
-
try {
|
|
179
|
-
if (_k && !_k.done && (_c = _j.return)) _c.call(_j);
|
|
180
|
-
}
|
|
181
|
-
finally { if (e_3) throw e_3.error; }
|
|
125
|
+
for (const ele of parent._children) {
|
|
126
|
+
if (ele._nodeType === interfaces_1.NodeType.Element)
|
|
127
|
+
throw new DOMException_1.HierarchyRequestError(`Document already has a document element node. Node is ${node.nodeName}.`);
|
|
182
128
|
}
|
|
183
129
|
if (child) {
|
|
184
130
|
if (childNodeType === interfaces_1.NodeType.DocumentType)
|
|
185
|
-
throw new DOMException_1.HierarchyRequestError(
|
|
186
|
-
|
|
131
|
+
throw new DOMException_1.HierarchyRequestError(`Cannot insert an element node before a document type node. Node is ${node.nodeName}.`);
|
|
132
|
+
let doctypeChild = child._nextSibling;
|
|
187
133
|
while (doctypeChild) {
|
|
188
134
|
if (doctypeChild._nodeType === interfaces_1.NodeType.DocumentType)
|
|
189
|
-
throw new DOMException_1.HierarchyRequestError(
|
|
135
|
+
throw new DOMException_1.HierarchyRequestError(`Cannot insert an element node before a document type node. Node is ${node.nodeName}.`);
|
|
190
136
|
doctypeChild = doctypeChild._nextSibling;
|
|
191
137
|
}
|
|
192
138
|
}
|
|
193
139
|
}
|
|
194
140
|
else if (nodeNodeType === interfaces_1.NodeType.DocumentType) {
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
if (ele._nodeType === interfaces_1.NodeType.DocumentType)
|
|
199
|
-
throw new DOMException_1.HierarchyRequestError("Document already has a document type node. Node is " + node.nodeName + ".");
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
203
|
-
finally {
|
|
204
|
-
try {
|
|
205
|
-
if (_m && !_m.done && (_d = _l.return)) _d.call(_l);
|
|
206
|
-
}
|
|
207
|
-
finally { if (e_4) throw e_4.error; }
|
|
141
|
+
for (const ele of parent._children) {
|
|
142
|
+
if (ele._nodeType === interfaces_1.NodeType.DocumentType)
|
|
143
|
+
throw new DOMException_1.HierarchyRequestError(`Document already has a document type node. Node is ${node.nodeName}.`);
|
|
208
144
|
}
|
|
209
145
|
if (child) {
|
|
210
|
-
|
|
146
|
+
let elementChild = child._previousSibling;
|
|
211
147
|
while (elementChild) {
|
|
212
148
|
if (elementChild._nodeType === interfaces_1.NodeType.Element)
|
|
213
|
-
throw new DOMException_1.HierarchyRequestError(
|
|
149
|
+
throw new DOMException_1.HierarchyRequestError(`Cannot insert a document type node before an element node. Node is ${node.nodeName}.`);
|
|
214
150
|
elementChild = elementChild._previousSibling;
|
|
215
151
|
}
|
|
216
152
|
}
|
|
217
153
|
else {
|
|
218
|
-
|
|
154
|
+
let elementChild = parent._firstChild;
|
|
219
155
|
while (elementChild) {
|
|
220
156
|
if (elementChild._nodeType === interfaces_1.NodeType.Element)
|
|
221
|
-
throw new DOMException_1.HierarchyRequestError(
|
|
157
|
+
throw new DOMException_1.HierarchyRequestError(`Cannot insert a document type node before an element node. Node is ${node.nodeName}.`);
|
|
222
158
|
elementChild = elementChild._nextSibling;
|
|
223
159
|
}
|
|
224
160
|
}
|
|
225
161
|
}
|
|
226
162
|
}
|
|
227
163
|
}
|
|
228
|
-
exports.mutation_ensurePreInsertionValidity = mutation_ensurePreInsertionValidity;
|
|
229
164
|
/**
|
|
230
165
|
* Ensures pre-insertion validity of a node into a parent before a
|
|
231
166
|
* child, then adopts the node to the tree and inserts it.
|
|
@@ -244,14 +179,13 @@ function mutation_preInsert(node, parent, child) {
|
|
|
244
179
|
* 6. Return node.
|
|
245
180
|
*/
|
|
246
181
|
mutation_ensurePreInsertionValidity(node, parent, child);
|
|
247
|
-
|
|
182
|
+
let referenceChild = child;
|
|
248
183
|
if (referenceChild === node)
|
|
249
184
|
referenceChild = node._nextSibling;
|
|
250
|
-
DocumentAlgorithm_1.document_adopt(node, parent._nodeDocument);
|
|
185
|
+
(0, DocumentAlgorithm_1.document_adopt)(node, parent._nodeDocument);
|
|
251
186
|
mutation_insert(node, parent, referenceChild);
|
|
252
187
|
return node;
|
|
253
188
|
}
|
|
254
|
-
exports.mutation_preInsert = mutation_preInsert;
|
|
255
189
|
/**
|
|
256
190
|
* Inserts a node into a parent node before the given child node.
|
|
257
191
|
*
|
|
@@ -261,7 +195,6 @@ exports.mutation_preInsert = mutation_preInsert;
|
|
|
261
195
|
* @param suppressObservers - whether to notify observers
|
|
262
196
|
*/
|
|
263
197
|
function mutation_insert(node, parent, child, suppressObservers) {
|
|
264
|
-
var e_5, _a;
|
|
265
198
|
// Optimized common case
|
|
266
199
|
if (child === null && node._nodeType !== interfaces_1.NodeType.DocumentFragment) {
|
|
267
200
|
mutation_insert_single(node, parent, suppressObservers);
|
|
@@ -271,7 +204,7 @@ function mutation_insert(node, parent, child, suppressObservers) {
|
|
|
271
204
|
* 1. Let count be the number of children of node if it is a
|
|
272
205
|
* DocumentFragment node, and one otherwise.
|
|
273
206
|
*/
|
|
274
|
-
|
|
207
|
+
const count = (node._nodeType === interfaces_1.NodeType.DocumentFragment ?
|
|
275
208
|
node._children.size : 1);
|
|
276
209
|
/**
|
|
277
210
|
* 2. If child is non-null, then:
|
|
@@ -286,24 +219,14 @@ function mutation_insert(node, parent, child, suppressObservers) {
|
|
|
286
219
|
* offset by count.
|
|
287
220
|
*/
|
|
288
221
|
if (DOMImpl_1.dom.rangeList.size !== 0) {
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
if (range._start[0] === parent && range._start[1] > index_1) {
|
|
294
|
-
range._start[1] += count;
|
|
295
|
-
}
|
|
296
|
-
if (range._end[0] === parent && range._end[1] > index_1) {
|
|
297
|
-
range._end[1] += count;
|
|
298
|
-
}
|
|
222
|
+
const index = (0, TreeAlgorithm_1.tree_index)(child);
|
|
223
|
+
for (const range of DOMImpl_1.dom.rangeList) {
|
|
224
|
+
if (range._start[0] === parent && range._start[1] > index) {
|
|
225
|
+
range._start[1] += count;
|
|
299
226
|
}
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
finally {
|
|
303
|
-
try {
|
|
304
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
227
|
+
if (range._end[0] === parent && range._end[1] > index) {
|
|
228
|
+
range._end[1] += count;
|
|
305
229
|
}
|
|
306
|
-
finally { if (e_5) throw e_5.error; }
|
|
307
230
|
}
|
|
308
231
|
}
|
|
309
232
|
}
|
|
@@ -311,7 +234,8 @@ function mutation_insert(node, parent, child, suppressObservers) {
|
|
|
311
234
|
* 3. Let nodes be node’s children, if node is a DocumentFragment node;
|
|
312
235
|
* otherwise « node ».
|
|
313
236
|
*/
|
|
314
|
-
|
|
237
|
+
const nodes = node._nodeType === interfaces_1.NodeType.DocumentFragment ?
|
|
238
|
+
new Array(...node._children) : [node];
|
|
315
239
|
/**
|
|
316
240
|
* 4. If node is a DocumentFragment node, remove its children with the
|
|
317
241
|
* suppress observers flag set.
|
|
@@ -327,29 +251,29 @@ function mutation_insert(node, parent, child, suppressObservers) {
|
|
|
327
251
|
*/
|
|
328
252
|
if (DOMImpl_1.dom.features.mutationObservers) {
|
|
329
253
|
if (node._nodeType === interfaces_1.NodeType.DocumentFragment) {
|
|
330
|
-
MutationObserverAlgorithm_1.observer_queueTreeMutationRecord(node, [], nodes, null, null);
|
|
254
|
+
(0, MutationObserverAlgorithm_1.observer_queueTreeMutationRecord)(node, [], nodes, null, null);
|
|
331
255
|
}
|
|
332
256
|
}
|
|
333
257
|
/**
|
|
334
258
|
* 6. Let previousSibling be child’s previous sibling or parent’s last
|
|
335
259
|
* child if child is null.
|
|
336
260
|
*/
|
|
337
|
-
|
|
338
|
-
|
|
261
|
+
const previousSibling = (child ? child._previousSibling : parent._lastChild);
|
|
262
|
+
let index = child === null ? -1 : (0, TreeAlgorithm_1.tree_index)(child);
|
|
339
263
|
/**
|
|
340
264
|
* 7. For each node in nodes, in tree order:
|
|
341
265
|
*/
|
|
342
|
-
for (
|
|
343
|
-
|
|
344
|
-
if (util_1.Guard.isElementNode(
|
|
266
|
+
for (let i = 0; i < nodes.length; i++) {
|
|
267
|
+
const node = nodes[i];
|
|
268
|
+
if (util_1.Guard.isElementNode(node)) {
|
|
345
269
|
// set document element node
|
|
346
270
|
if (util_1.Guard.isDocumentNode(parent)) {
|
|
347
|
-
parent._documentElement =
|
|
271
|
+
parent._documentElement = node;
|
|
348
272
|
}
|
|
349
273
|
// mark that the document has namespaces
|
|
350
|
-
if (!
|
|
351
|
-
|
|
352
|
-
|
|
274
|
+
if (!node._nodeDocument._hasNamespaces && (node._namespace !== null ||
|
|
275
|
+
node._namespacePrefix !== null)) {
|
|
276
|
+
node._nodeDocument._hasNamespaces = true;
|
|
353
277
|
}
|
|
354
278
|
}
|
|
355
279
|
/**
|
|
@@ -357,42 +281,42 @@ function mutation_insert(node, parent, child, suppressObservers) {
|
|
|
357
281
|
* 7.2. Otherwise, insert node into parent’s children before child’s
|
|
358
282
|
* index.
|
|
359
283
|
*/
|
|
360
|
-
|
|
284
|
+
node._parent = parent;
|
|
361
285
|
if (child === null) {
|
|
362
|
-
infra_1.set.append(parent._children,
|
|
286
|
+
infra_1.set.append(parent._children, node);
|
|
363
287
|
}
|
|
364
288
|
else {
|
|
365
|
-
infra_1.set.insert(parent._children,
|
|
289
|
+
infra_1.set.insert(parent._children, node, index);
|
|
366
290
|
index++;
|
|
367
291
|
}
|
|
368
292
|
// assign siblings and children for quick lookups
|
|
369
293
|
if (parent._firstChild === null) {
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
parent._firstChild =
|
|
373
|
-
parent._lastChild =
|
|
294
|
+
node._previousSibling = null;
|
|
295
|
+
node._nextSibling = null;
|
|
296
|
+
parent._firstChild = node;
|
|
297
|
+
parent._lastChild = node;
|
|
374
298
|
}
|
|
375
299
|
else {
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
300
|
+
const prev = (child ? child._previousSibling : parent._lastChild);
|
|
301
|
+
const next = (child ? child : null);
|
|
302
|
+
node._previousSibling = prev;
|
|
303
|
+
node._nextSibling = next;
|
|
380
304
|
if (prev)
|
|
381
|
-
prev._nextSibling =
|
|
305
|
+
prev._nextSibling = node;
|
|
382
306
|
if (next)
|
|
383
|
-
next._previousSibling =
|
|
307
|
+
next._previousSibling = node;
|
|
384
308
|
if (!prev)
|
|
385
|
-
parent._firstChild =
|
|
309
|
+
parent._firstChild = node;
|
|
386
310
|
if (!next)
|
|
387
|
-
parent._lastChild =
|
|
311
|
+
parent._lastChild = node;
|
|
388
312
|
}
|
|
389
313
|
/**
|
|
390
314
|
* 7.3. If parent is a shadow host and node is a slotable, then
|
|
391
315
|
* assign a slot for node.
|
|
392
316
|
*/
|
|
393
317
|
if (DOMImpl_1.dom.features.slots) {
|
|
394
|
-
if (parent._shadowRoot !== null && util_1.Guard.isSlotable(
|
|
395
|
-
ShadowTreeAlgorithm_1.shadowTree_assignASlot(
|
|
318
|
+
if (parent._shadowRoot !== null && util_1.Guard.isSlotable(node)) {
|
|
319
|
+
(0, ShadowTreeAlgorithm_1.shadowTree_assignASlot)(node);
|
|
396
320
|
}
|
|
397
321
|
}
|
|
398
322
|
/**
|
|
@@ -400,8 +324,8 @@ function mutation_insert(node, parent, child, suppressObservers) {
|
|
|
400
324
|
* steps for parent.
|
|
401
325
|
*/
|
|
402
326
|
if (DOMImpl_1.dom.features.steps) {
|
|
403
|
-
if (util_1.Guard.isTextNode(
|
|
404
|
-
DOMAlgorithm_1.dom_runChildTextContentChangeSteps(parent);
|
|
327
|
+
if (util_1.Guard.isTextNode(node)) {
|
|
328
|
+
(0, DOMAlgorithm_1.dom_runChildTextContentChangeSteps)(parent);
|
|
405
329
|
}
|
|
406
330
|
}
|
|
407
331
|
/**
|
|
@@ -410,53 +334,53 @@ function mutation_insert(node, parent, child, suppressObservers) {
|
|
|
410
334
|
* a slot change for parent.
|
|
411
335
|
*/
|
|
412
336
|
if (DOMImpl_1.dom.features.slots) {
|
|
413
|
-
if (util_1.Guard.isShadowRoot(TreeAlgorithm_1.tree_rootNode(parent)) &&
|
|
414
|
-
util_1.Guard.isSlot(parent) && util_2.isEmpty(parent._assignedNodes)) {
|
|
415
|
-
ShadowTreeAlgorithm_1.shadowTree_signalASlotChange(parent);
|
|
337
|
+
if (util_1.Guard.isShadowRoot((0, TreeAlgorithm_1.tree_rootNode)(parent)) &&
|
|
338
|
+
util_1.Guard.isSlot(parent) && (0, util_2.isEmpty)(parent._assignedNodes)) {
|
|
339
|
+
(0, ShadowTreeAlgorithm_1.shadowTree_signalASlotChange)(parent);
|
|
416
340
|
}
|
|
417
341
|
}
|
|
418
342
|
/**
|
|
419
343
|
* 7.6. Run assign slotables for a tree with node's root.
|
|
420
344
|
*/
|
|
421
345
|
if (DOMImpl_1.dom.features.slots) {
|
|
422
|
-
ShadowTreeAlgorithm_1.shadowTree_assignSlotablesForATree(TreeAlgorithm_1.tree_rootNode(
|
|
346
|
+
(0, ShadowTreeAlgorithm_1.shadowTree_assignSlotablesForATree)((0, TreeAlgorithm_1.tree_rootNode)(node));
|
|
423
347
|
}
|
|
424
348
|
/**
|
|
425
349
|
* 7.7. For each shadow-including inclusive descendant
|
|
426
350
|
* inclusiveDescendant of node, in shadow-including tree
|
|
427
351
|
* order:
|
|
428
352
|
*/
|
|
429
|
-
|
|
353
|
+
let inclusiveDescendant = (0, TreeAlgorithm_1.tree_getFirstDescendantNode)(node, true, true);
|
|
430
354
|
while (inclusiveDescendant !== null) {
|
|
431
355
|
/**
|
|
432
356
|
* 7.7.1. Run the insertion steps with inclusiveDescendant.
|
|
433
357
|
*/
|
|
434
358
|
if (DOMImpl_1.dom.features.steps) {
|
|
435
|
-
DOMAlgorithm_1.dom_runInsertionSteps(inclusiveDescendant);
|
|
359
|
+
(0, DOMAlgorithm_1.dom_runInsertionSteps)(inclusiveDescendant);
|
|
436
360
|
}
|
|
437
361
|
if (DOMImpl_1.dom.features.customElements) {
|
|
438
362
|
/**
|
|
439
363
|
* 7.7.2. If inclusiveDescendant is connected, then:
|
|
440
364
|
*/
|
|
441
365
|
if (util_1.Guard.isElementNode(inclusiveDescendant) &&
|
|
442
|
-
ShadowTreeAlgorithm_1.shadowTree_isConnected(inclusiveDescendant)) {
|
|
366
|
+
(0, ShadowTreeAlgorithm_1.shadowTree_isConnected)(inclusiveDescendant)) {
|
|
443
367
|
if (util_1.Guard.isCustomElementNode(inclusiveDescendant)) {
|
|
444
368
|
/**
|
|
445
369
|
* 7.7.2.1. If inclusiveDescendant is custom, then enqueue a custom
|
|
446
370
|
* element callback reaction with inclusiveDescendant, callback name
|
|
447
371
|
* "connectedCallback", and an empty argument list.
|
|
448
372
|
*/
|
|
449
|
-
CustomElementAlgorithm_1.customElement_enqueueACustomElementCallbackReaction(inclusiveDescendant, "connectedCallback", []);
|
|
373
|
+
(0, CustomElementAlgorithm_1.customElement_enqueueACustomElementCallbackReaction)(inclusiveDescendant, "connectedCallback", []);
|
|
450
374
|
}
|
|
451
375
|
else {
|
|
452
376
|
/**
|
|
453
377
|
* 7.7.2.2. Otherwise, try to upgrade inclusiveDescendant.
|
|
454
378
|
*/
|
|
455
|
-
CustomElementAlgorithm_1.customElement_tryToUpgrade(inclusiveDescendant);
|
|
379
|
+
(0, CustomElementAlgorithm_1.customElement_tryToUpgrade)(inclusiveDescendant);
|
|
456
380
|
}
|
|
457
381
|
}
|
|
458
382
|
}
|
|
459
|
-
inclusiveDescendant = TreeAlgorithm_1.tree_getNextDescendantNode(
|
|
383
|
+
inclusiveDescendant = (0, TreeAlgorithm_1.tree_getNextDescendantNode)(node, inclusiveDescendant, true, true);
|
|
460
384
|
}
|
|
461
385
|
}
|
|
462
386
|
/**
|
|
@@ -465,11 +389,10 @@ function mutation_insert(node, parent, child, suppressObservers) {
|
|
|
465
389
|
*/
|
|
466
390
|
if (DOMImpl_1.dom.features.mutationObservers) {
|
|
467
391
|
if (!suppressObservers) {
|
|
468
|
-
MutationObserverAlgorithm_1.observer_queueTreeMutationRecord(parent, nodes, [], previousSibling, child);
|
|
392
|
+
(0, MutationObserverAlgorithm_1.observer_queueTreeMutationRecord)(parent, nodes, [], previousSibling, child);
|
|
469
393
|
}
|
|
470
394
|
}
|
|
471
395
|
}
|
|
472
|
-
exports.mutation_insert = mutation_insert;
|
|
473
396
|
/**
|
|
474
397
|
* Inserts a node into a parent node. Optimized routine for the common case where
|
|
475
398
|
* node is not a document fragment node and it has no child nodes.
|
|
@@ -500,7 +423,7 @@ function mutation_insert_single(node, parent, suppressObservers) {
|
|
|
500
423
|
* 6. Let previousSibling be child’s previous sibling or parent’s last
|
|
501
424
|
* child if child is null.
|
|
502
425
|
*/
|
|
503
|
-
|
|
426
|
+
const previousSibling = parent._lastChild;
|
|
504
427
|
// set document element node
|
|
505
428
|
if (util_1.Guard.isElementNode(node)) {
|
|
506
429
|
// set document element node
|
|
@@ -529,7 +452,7 @@ function mutation_insert_single(node, parent, suppressObservers) {
|
|
|
529
452
|
parent._lastChild = node;
|
|
530
453
|
}
|
|
531
454
|
else {
|
|
532
|
-
|
|
455
|
+
const prev = parent._lastChild;
|
|
533
456
|
node._previousSibling = prev;
|
|
534
457
|
node._nextSibling = null;
|
|
535
458
|
if (prev)
|
|
@@ -544,7 +467,7 @@ function mutation_insert_single(node, parent, suppressObservers) {
|
|
|
544
467
|
*/
|
|
545
468
|
if (DOMImpl_1.dom.features.slots) {
|
|
546
469
|
if (parent._shadowRoot !== null && util_1.Guard.isSlotable(node)) {
|
|
547
|
-
ShadowTreeAlgorithm_1.shadowTree_assignASlot(node);
|
|
470
|
+
(0, ShadowTreeAlgorithm_1.shadowTree_assignASlot)(node);
|
|
548
471
|
}
|
|
549
472
|
}
|
|
550
473
|
/**
|
|
@@ -553,7 +476,7 @@ function mutation_insert_single(node, parent, suppressObservers) {
|
|
|
553
476
|
*/
|
|
554
477
|
if (DOMImpl_1.dom.features.steps) {
|
|
555
478
|
if (util_1.Guard.isTextNode(node)) {
|
|
556
|
-
DOMAlgorithm_1.dom_runChildTextContentChangeSteps(parent);
|
|
479
|
+
(0, DOMAlgorithm_1.dom_runChildTextContentChangeSteps)(parent);
|
|
557
480
|
}
|
|
558
481
|
}
|
|
559
482
|
/**
|
|
@@ -562,16 +485,16 @@ function mutation_insert_single(node, parent, suppressObservers) {
|
|
|
562
485
|
* a slot change for parent.
|
|
563
486
|
*/
|
|
564
487
|
if (DOMImpl_1.dom.features.slots) {
|
|
565
|
-
if (util_1.Guard.isShadowRoot(TreeAlgorithm_1.tree_rootNode(parent)) &&
|
|
566
|
-
util_1.Guard.isSlot(parent) && util_2.isEmpty(parent._assignedNodes)) {
|
|
567
|
-
ShadowTreeAlgorithm_1.shadowTree_signalASlotChange(parent);
|
|
488
|
+
if (util_1.Guard.isShadowRoot((0, TreeAlgorithm_1.tree_rootNode)(parent)) &&
|
|
489
|
+
util_1.Guard.isSlot(parent) && (0, util_2.isEmpty)(parent._assignedNodes)) {
|
|
490
|
+
(0, ShadowTreeAlgorithm_1.shadowTree_signalASlotChange)(parent);
|
|
568
491
|
}
|
|
569
492
|
}
|
|
570
493
|
/**
|
|
571
494
|
* 7.6. Run assign slotables for a tree with node's root.
|
|
572
495
|
*/
|
|
573
496
|
if (DOMImpl_1.dom.features.slots) {
|
|
574
|
-
ShadowTreeAlgorithm_1.shadowTree_assignSlotablesForATree(TreeAlgorithm_1.tree_rootNode(node));
|
|
497
|
+
(0, ShadowTreeAlgorithm_1.shadowTree_assignSlotablesForATree)((0, TreeAlgorithm_1.tree_rootNode)(node));
|
|
575
498
|
}
|
|
576
499
|
/**
|
|
577
500
|
* 7.7. For each shadow-including inclusive descendant
|
|
@@ -580,27 +503,27 @@ function mutation_insert_single(node, parent, suppressObservers) {
|
|
|
580
503
|
* 7.7.1. Run the insertion steps with inclusiveDescendant.
|
|
581
504
|
*/
|
|
582
505
|
if (DOMImpl_1.dom.features.steps) {
|
|
583
|
-
DOMAlgorithm_1.dom_runInsertionSteps(node);
|
|
506
|
+
(0, DOMAlgorithm_1.dom_runInsertionSteps)(node);
|
|
584
507
|
}
|
|
585
508
|
if (DOMImpl_1.dom.features.customElements) {
|
|
586
509
|
/**
|
|
587
510
|
* 7.7.2. If inclusiveDescendant is connected, then:
|
|
588
511
|
*/
|
|
589
512
|
if (util_1.Guard.isElementNode(node) &&
|
|
590
|
-
ShadowTreeAlgorithm_1.shadowTree_isConnected(node)) {
|
|
513
|
+
(0, ShadowTreeAlgorithm_1.shadowTree_isConnected)(node)) {
|
|
591
514
|
if (util_1.Guard.isCustomElementNode(node)) {
|
|
592
515
|
/**
|
|
593
516
|
* 7.7.2.1. If inclusiveDescendant is custom, then enqueue a custom
|
|
594
517
|
* element callback reaction with inclusiveDescendant, callback name
|
|
595
518
|
* "connectedCallback", and an empty argument list.
|
|
596
519
|
*/
|
|
597
|
-
CustomElementAlgorithm_1.customElement_enqueueACustomElementCallbackReaction(node, "connectedCallback", []);
|
|
520
|
+
(0, CustomElementAlgorithm_1.customElement_enqueueACustomElementCallbackReaction)(node, "connectedCallback", []);
|
|
598
521
|
}
|
|
599
522
|
else {
|
|
600
523
|
/**
|
|
601
524
|
* 7.7.2.2. Otherwise, try to upgrade inclusiveDescendant.
|
|
602
525
|
*/
|
|
603
|
-
CustomElementAlgorithm_1.customElement_tryToUpgrade(node);
|
|
526
|
+
(0, CustomElementAlgorithm_1.customElement_tryToUpgrade)(node);
|
|
604
527
|
}
|
|
605
528
|
}
|
|
606
529
|
}
|
|
@@ -610,7 +533,7 @@ function mutation_insert_single(node, parent, suppressObservers) {
|
|
|
610
533
|
*/
|
|
611
534
|
if (DOMImpl_1.dom.features.mutationObservers) {
|
|
612
535
|
if (!suppressObservers) {
|
|
613
|
-
MutationObserverAlgorithm_1.observer_queueTreeMutationRecord(parent, [node], [], previousSibling, null);
|
|
536
|
+
(0, MutationObserverAlgorithm_1.observer_queueTreeMutationRecord)(parent, [node], [], previousSibling, null);
|
|
614
537
|
}
|
|
615
538
|
}
|
|
616
539
|
}
|
|
@@ -626,7 +549,6 @@ function mutation_append(node, parent) {
|
|
|
626
549
|
*/
|
|
627
550
|
return mutation_preInsert(node, parent, null);
|
|
628
551
|
}
|
|
629
|
-
exports.mutation_append = mutation_append;
|
|
630
552
|
/**
|
|
631
553
|
* Replaces a node with another node.
|
|
632
554
|
*
|
|
@@ -635,7 +557,6 @@ exports.mutation_append = mutation_append;
|
|
|
635
557
|
* @param parent - parent node to receive node
|
|
636
558
|
*/
|
|
637
559
|
function mutation_replace(child, node, parent) {
|
|
638
|
-
var e_6, _a, e_7, _b, e_8, _c, e_9, _d;
|
|
639
560
|
/**
|
|
640
561
|
* 1. If parent is not a Document, DocumentFragment, or Element node,
|
|
641
562
|
* throw a "HierarchyRequestError" DOMException.
|
|
@@ -643,19 +564,19 @@ function mutation_replace(child, node, parent) {
|
|
|
643
564
|
if (parent._nodeType !== interfaces_1.NodeType.Document &&
|
|
644
565
|
parent._nodeType !== interfaces_1.NodeType.DocumentFragment &&
|
|
645
566
|
parent._nodeType !== interfaces_1.NodeType.Element)
|
|
646
|
-
throw new DOMException_1.HierarchyRequestError(
|
|
567
|
+
throw new DOMException_1.HierarchyRequestError(`Only document, document fragment and element nodes can contain child nodes. Parent node is ${parent.nodeName}.`);
|
|
647
568
|
/**
|
|
648
569
|
* 2. If node is a host-including inclusive ancestor of parent, throw a
|
|
649
570
|
* "HierarchyRequestError" DOMException.
|
|
650
571
|
*/
|
|
651
|
-
if (TreeAlgorithm_1.tree_isHostIncludingAncestorOf(parent, node, true))
|
|
652
|
-
throw new DOMException_1.HierarchyRequestError(
|
|
572
|
+
if ((0, TreeAlgorithm_1.tree_isHostIncludingAncestorOf)(parent, node, true))
|
|
573
|
+
throw new DOMException_1.HierarchyRequestError(`The node to be inserted cannot be an ancestor of parent node. Node is ${node.nodeName}, parent node is ${parent.nodeName}.`);
|
|
653
574
|
/**
|
|
654
575
|
* 3. If child’s parent is not parent, then throw a "NotFoundError"
|
|
655
576
|
* DOMException.
|
|
656
577
|
*/
|
|
657
578
|
if (child._parent !== parent)
|
|
658
|
-
throw new DOMException_1.NotFoundError(
|
|
579
|
+
throw new DOMException_1.NotFoundError(`The reference child node cannot be found under parent node. Child node is ${child.nodeName}, parent node is ${parent.nodeName}.`);
|
|
659
580
|
/**
|
|
660
581
|
* 4. If node is not a DocumentFragment, DocumentType, Element, Text,
|
|
661
582
|
* ProcessingInstruction, or Comment node, throw a "HierarchyRequestError"
|
|
@@ -668,7 +589,7 @@ function mutation_replace(child, node, parent) {
|
|
|
668
589
|
node._nodeType !== interfaces_1.NodeType.ProcessingInstruction &&
|
|
669
590
|
node._nodeType !== interfaces_1.NodeType.CData &&
|
|
670
591
|
node._nodeType !== interfaces_1.NodeType.Comment)
|
|
671
|
-
throw new DOMException_1.HierarchyRequestError(
|
|
592
|
+
throw new DOMException_1.HierarchyRequestError(`Only document fragment, document type, element, text, processing instruction, cdata section or comment nodes can be inserted. Node is ${node.nodeName}.`);
|
|
672
593
|
/**
|
|
673
594
|
* 5. If either node is a Text node and parent is a document, or node is a
|
|
674
595
|
* doctype and parent is not a document, throw a "HierarchyRequestError"
|
|
@@ -676,10 +597,10 @@ function mutation_replace(child, node, parent) {
|
|
|
676
597
|
*/
|
|
677
598
|
if (node._nodeType === interfaces_1.NodeType.Text &&
|
|
678
599
|
parent._nodeType === interfaces_1.NodeType.Document)
|
|
679
|
-
throw new DOMException_1.HierarchyRequestError(
|
|
600
|
+
throw new DOMException_1.HierarchyRequestError(`Cannot insert a text node as a child of a document node. Node is ${node.nodeName}.`);
|
|
680
601
|
if (node._nodeType === interfaces_1.NodeType.DocumentType &&
|
|
681
602
|
parent._nodeType !== interfaces_1.NodeType.Document)
|
|
682
|
-
throw new DOMException_1.HierarchyRequestError(
|
|
603
|
+
throw new DOMException_1.HierarchyRequestError(`A document type node can only be inserted under a document node. Parent node is ${parent.nodeName}.`);
|
|
683
604
|
/**
|
|
684
605
|
* 6. If parent is a document, and any of the statements below, switched on
|
|
685
606
|
* node, are true, throw a "HierarchyRequestError" DOMException.
|
|
@@ -696,90 +617,50 @@ function mutation_replace(child, node, parent) {
|
|
|
696
617
|
*/
|
|
697
618
|
if (parent._nodeType === interfaces_1.NodeType.Document) {
|
|
698
619
|
if (node._nodeType === interfaces_1.NodeType.DocumentFragment) {
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
else if (childNode._nodeType === interfaces_1.NodeType.Text)
|
|
706
|
-
throw new DOMException_1.HierarchyRequestError("Cannot insert text a node as a child of a document node. Node is " + childNode.nodeName + ".");
|
|
707
|
-
}
|
|
708
|
-
}
|
|
709
|
-
catch (e_6_1) { e_6 = { error: e_6_1 }; }
|
|
710
|
-
finally {
|
|
711
|
-
try {
|
|
712
|
-
if (_f && !_f.done && (_a = _e.return)) _a.call(_e);
|
|
713
|
-
}
|
|
714
|
-
finally { if (e_6) throw e_6.error; }
|
|
620
|
+
let eleCount = 0;
|
|
621
|
+
for (const childNode of node._children) {
|
|
622
|
+
if (childNode._nodeType === interfaces_1.NodeType.Element)
|
|
623
|
+
eleCount++;
|
|
624
|
+
else if (childNode._nodeType === interfaces_1.NodeType.Text)
|
|
625
|
+
throw new DOMException_1.HierarchyRequestError(`Cannot insert text a node as a child of a document node. Node is ${childNode.nodeName}.`);
|
|
715
626
|
}
|
|
716
627
|
if (eleCount > 1) {
|
|
717
|
-
throw new DOMException_1.HierarchyRequestError(
|
|
628
|
+
throw new DOMException_1.HierarchyRequestError(`A document node can only have one document element node. Document fragment to be inserted has ${eleCount} element nodes.`);
|
|
718
629
|
}
|
|
719
630
|
else if (eleCount === 1) {
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
if (ele._nodeType === interfaces_1.NodeType.Element && ele !== child)
|
|
724
|
-
throw new DOMException_1.HierarchyRequestError("The document node already has a document element node.");
|
|
725
|
-
}
|
|
726
|
-
}
|
|
727
|
-
catch (e_7_1) { e_7 = { error: e_7_1 }; }
|
|
728
|
-
finally {
|
|
729
|
-
try {
|
|
730
|
-
if (_h && !_h.done && (_b = _g.return)) _b.call(_g);
|
|
731
|
-
}
|
|
732
|
-
finally { if (e_7) throw e_7.error; }
|
|
631
|
+
for (const ele of parent._children) {
|
|
632
|
+
if (ele._nodeType === interfaces_1.NodeType.Element && ele !== child)
|
|
633
|
+
throw new DOMException_1.HierarchyRequestError(`The document node already has a document element node.`);
|
|
733
634
|
}
|
|
734
|
-
|
|
635
|
+
let doctypeChild = child._nextSibling;
|
|
735
636
|
while (doctypeChild) {
|
|
736
637
|
if (doctypeChild._nodeType === interfaces_1.NodeType.DocumentType)
|
|
737
|
-
throw new DOMException_1.HierarchyRequestError(
|
|
638
|
+
throw new DOMException_1.HierarchyRequestError(`Cannot insert an element node before a document type node.`);
|
|
738
639
|
doctypeChild = doctypeChild._nextSibling;
|
|
739
640
|
}
|
|
740
641
|
}
|
|
741
642
|
}
|
|
742
643
|
else if (node._nodeType === interfaces_1.NodeType.Element) {
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
if (ele._nodeType === interfaces_1.NodeType.Element && ele !== child)
|
|
747
|
-
throw new DOMException_1.HierarchyRequestError("Document already has a document element node. Node is " + node.nodeName + ".");
|
|
748
|
-
}
|
|
644
|
+
for (const ele of parent._children) {
|
|
645
|
+
if (ele._nodeType === interfaces_1.NodeType.Element && ele !== child)
|
|
646
|
+
throw new DOMException_1.HierarchyRequestError(`Document already has a document element node. Node is ${node.nodeName}.`);
|
|
749
647
|
}
|
|
750
|
-
|
|
751
|
-
finally {
|
|
752
|
-
try {
|
|
753
|
-
if (_k && !_k.done && (_c = _j.return)) _c.call(_j);
|
|
754
|
-
}
|
|
755
|
-
finally { if (e_8) throw e_8.error; }
|
|
756
|
-
}
|
|
757
|
-
var doctypeChild = child._nextSibling;
|
|
648
|
+
let doctypeChild = child._nextSibling;
|
|
758
649
|
while (doctypeChild) {
|
|
759
650
|
if (doctypeChild._nodeType === interfaces_1.NodeType.DocumentType)
|
|
760
|
-
throw new DOMException_1.HierarchyRequestError(
|
|
651
|
+
throw new DOMException_1.HierarchyRequestError(`Cannot insert an element node before a document type node. Node is ${node.nodeName}.`);
|
|
761
652
|
doctypeChild = doctypeChild._nextSibling;
|
|
762
653
|
}
|
|
763
654
|
}
|
|
764
655
|
else if (node._nodeType === interfaces_1.NodeType.DocumentType) {
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
if (ele._nodeType === interfaces_1.NodeType.DocumentType && ele !== child)
|
|
769
|
-
throw new DOMException_1.HierarchyRequestError("Document already has a document type node. Node is " + node.nodeName + ".");
|
|
770
|
-
}
|
|
656
|
+
for (const ele of parent._children) {
|
|
657
|
+
if (ele._nodeType === interfaces_1.NodeType.DocumentType && ele !== child)
|
|
658
|
+
throw new DOMException_1.HierarchyRequestError(`Document already has a document type node. Node is ${node.nodeName}.`);
|
|
771
659
|
}
|
|
772
|
-
|
|
773
|
-
finally {
|
|
774
|
-
try {
|
|
775
|
-
if (_m && !_m.done && (_d = _l.return)) _d.call(_l);
|
|
776
|
-
}
|
|
777
|
-
finally { if (e_9) throw e_9.error; }
|
|
778
|
-
}
|
|
779
|
-
var elementChild = child._previousSibling;
|
|
660
|
+
let elementChild = child._previousSibling;
|
|
780
661
|
while (elementChild) {
|
|
781
662
|
if (elementChild._nodeType === interfaces_1.NodeType.Element)
|
|
782
|
-
throw new DOMException_1.HierarchyRequestError(
|
|
663
|
+
throw new DOMException_1.HierarchyRequestError(`Cannot insert a document type node before an element node. Node is ${node.nodeName}.`);
|
|
783
664
|
elementChild = elementChild._previousSibling;
|
|
784
665
|
}
|
|
785
666
|
}
|
|
@@ -789,16 +670,16 @@ function mutation_replace(child, node, parent) {
|
|
|
789
670
|
* 8. If reference child is node, set it to node’s next sibling.
|
|
790
671
|
* 8. Let previousSibling be child’s previous sibling.
|
|
791
672
|
*/
|
|
792
|
-
|
|
673
|
+
let referenceChild = child._nextSibling;
|
|
793
674
|
if (referenceChild === node)
|
|
794
675
|
referenceChild = node._nextSibling;
|
|
795
|
-
|
|
676
|
+
let previousSibling = child._previousSibling;
|
|
796
677
|
/**
|
|
797
678
|
* 10. Adopt node into parent’s node document.
|
|
798
679
|
* 11. Let removedNodes be the empty list.
|
|
799
680
|
*/
|
|
800
|
-
DocumentAlgorithm_1.document_adopt(node, parent._nodeDocument);
|
|
801
|
-
|
|
681
|
+
(0, DocumentAlgorithm_1.document_adopt)(node, parent._nodeDocument);
|
|
682
|
+
const removedNodes = [];
|
|
802
683
|
/**
|
|
803
684
|
* 12. If child’s parent is not null, then:
|
|
804
685
|
*/
|
|
@@ -815,7 +696,7 @@ function mutation_replace(child, node, parent) {
|
|
|
815
696
|
* 13. Let nodes be node’s children if node is a DocumentFragment node;
|
|
816
697
|
* otherwise [node].
|
|
817
698
|
*/
|
|
818
|
-
|
|
699
|
+
let nodes = [];
|
|
819
700
|
if (node._nodeType === interfaces_1.NodeType.DocumentFragment) {
|
|
820
701
|
nodes = Array.from(node._children);
|
|
821
702
|
}
|
|
@@ -832,14 +713,13 @@ function mutation_replace(child, node, parent) {
|
|
|
832
713
|
* previousSibling, and reference child.
|
|
833
714
|
*/
|
|
834
715
|
if (DOMImpl_1.dom.features.mutationObservers) {
|
|
835
|
-
MutationObserverAlgorithm_1.observer_queueTreeMutationRecord(parent, nodes, removedNodes, previousSibling, referenceChild);
|
|
716
|
+
(0, MutationObserverAlgorithm_1.observer_queueTreeMutationRecord)(parent, nodes, removedNodes, previousSibling, referenceChild);
|
|
836
717
|
}
|
|
837
718
|
/**
|
|
838
719
|
* 16. Return child.
|
|
839
720
|
*/
|
|
840
721
|
return child;
|
|
841
722
|
}
|
|
842
|
-
exports.mutation_replace = mutation_replace;
|
|
843
723
|
/**
|
|
844
724
|
* Replaces all nodes of a parent with the given node.
|
|
845
725
|
*
|
|
@@ -847,46 +727,35 @@ exports.mutation_replace = mutation_replace;
|
|
|
847
727
|
* @param parent - parent node to receive node
|
|
848
728
|
*/
|
|
849
729
|
function mutation_replaceAll(node, parent) {
|
|
850
|
-
var e_10, _a;
|
|
851
730
|
/**
|
|
852
731
|
* 1. If node is not null, adopt node into parent’s node document.
|
|
853
732
|
*/
|
|
854
733
|
if (node !== null) {
|
|
855
|
-
DocumentAlgorithm_1.document_adopt(node, parent._nodeDocument);
|
|
734
|
+
(0, DocumentAlgorithm_1.document_adopt)(node, parent._nodeDocument);
|
|
856
735
|
}
|
|
857
736
|
/**
|
|
858
737
|
* 2. Let removedNodes be parent’s children.
|
|
859
738
|
*/
|
|
860
|
-
|
|
739
|
+
const removedNodes = Array.from(parent._children);
|
|
861
740
|
/**
|
|
862
741
|
* 3. Let addedNodes be the empty list.
|
|
863
742
|
* 4. If node is DocumentFragment node, then set addedNodes to node’s
|
|
864
743
|
* children.
|
|
865
744
|
* 5. Otherwise, if node is non-null, set addedNodes to [node].
|
|
866
745
|
*/
|
|
867
|
-
|
|
746
|
+
let addedNodes = [];
|
|
868
747
|
if (node && node._nodeType === interfaces_1.NodeType.DocumentFragment) {
|
|
869
748
|
addedNodes = Array.from(node._children);
|
|
870
749
|
}
|
|
871
750
|
else if (node !== null) {
|
|
872
751
|
addedNodes.push(node);
|
|
873
752
|
}
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
var childNode = removedNodes_1_1.value;
|
|
881
|
-
mutation_remove(childNode, parent, true);
|
|
882
|
-
}
|
|
883
|
-
}
|
|
884
|
-
catch (e_10_1) { e_10 = { error: e_10_1 }; }
|
|
885
|
-
finally {
|
|
886
|
-
try {
|
|
887
|
-
if (removedNodes_1_1 && !removedNodes_1_1.done && (_a = removedNodes_1.return)) _a.call(removedNodes_1);
|
|
888
|
-
}
|
|
889
|
-
finally { if (e_10) throw e_10.error; }
|
|
753
|
+
/**
|
|
754
|
+
* 6. Remove all parent’s children, in tree order, with the suppress
|
|
755
|
+
* observers flag set.
|
|
756
|
+
*/
|
|
757
|
+
for (const childNode of removedNodes) {
|
|
758
|
+
mutation_remove(childNode, parent, true);
|
|
890
759
|
}
|
|
891
760
|
/**
|
|
892
761
|
* 7. If node is not null, then insert node into parent before null with the
|
|
@@ -900,10 +769,9 @@ function mutation_replaceAll(node, parent) {
|
|
|
900
769
|
* null, and null.
|
|
901
770
|
*/
|
|
902
771
|
if (DOMImpl_1.dom.features.mutationObservers) {
|
|
903
|
-
MutationObserverAlgorithm_1.observer_queueTreeMutationRecord(parent, addedNodes, removedNodes, null, null);
|
|
772
|
+
(0, MutationObserverAlgorithm_1.observer_queueTreeMutationRecord)(parent, addedNodes, removedNodes, null, null);
|
|
904
773
|
}
|
|
905
774
|
}
|
|
906
|
-
exports.mutation_replaceAll = mutation_replaceAll;
|
|
907
775
|
/**
|
|
908
776
|
* Ensures pre-removal validity of a child node from a parent, then
|
|
909
777
|
* removes it.
|
|
@@ -919,11 +787,10 @@ function mutation_preRemove(child, parent) {
|
|
|
919
787
|
* 3. Return child.
|
|
920
788
|
*/
|
|
921
789
|
if (child._parent !== parent)
|
|
922
|
-
throw new DOMException_1.NotFoundError(
|
|
790
|
+
throw new DOMException_1.NotFoundError(`The child node cannot be found under parent node. Child node is ${child.nodeName}, parent node is ${parent.nodeName}.`);
|
|
923
791
|
mutation_remove(child, parent);
|
|
924
792
|
return child;
|
|
925
793
|
}
|
|
926
|
-
exports.mutation_preRemove = mutation_preRemove;
|
|
927
794
|
/**
|
|
928
795
|
* Removes a child node from its parent.
|
|
929
796
|
*
|
|
@@ -932,65 +799,44 @@ exports.mutation_preRemove = mutation_preRemove;
|
|
|
932
799
|
* @param suppressObservers - whether to notify observers
|
|
933
800
|
*/
|
|
934
801
|
function mutation_remove(node, parent, suppressObservers) {
|
|
935
|
-
var e_11, _a, e_12, _b, e_13, _c, e_14, _d;
|
|
936
802
|
if (DOMImpl_1.dom.rangeList.size !== 0) {
|
|
937
803
|
/**
|
|
938
804
|
* 1. Let index be node’s index.
|
|
939
805
|
*/
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
if (TreeAlgorithm_1.tree_isDescendantOf(node, range._start[0], true)) {
|
|
951
|
-
range._start = [parent, index];
|
|
952
|
-
}
|
|
953
|
-
if (TreeAlgorithm_1.tree_isDescendantOf(node, range._end[0], true)) {
|
|
954
|
-
range._end = [parent, index];
|
|
955
|
-
}
|
|
956
|
-
if (range._start[0] === parent && range._start[1] > index) {
|
|
957
|
-
range._start[1]--;
|
|
958
|
-
}
|
|
959
|
-
if (range._end[0] === parent && range._end[1] > index) {
|
|
960
|
-
range._end[1]--;
|
|
961
|
-
}
|
|
806
|
+
const index = (0, TreeAlgorithm_1.tree_index)(node);
|
|
807
|
+
/**
|
|
808
|
+
* 2. For each live range whose start node is an inclusive descendant of
|
|
809
|
+
* node, set its start to (parent, index).
|
|
810
|
+
* 3. For each live range whose end node is an inclusive descendant of
|
|
811
|
+
* node, set its end to (parent, index).
|
|
812
|
+
*/
|
|
813
|
+
for (const range of DOMImpl_1.dom.rangeList) {
|
|
814
|
+
if ((0, TreeAlgorithm_1.tree_isDescendantOf)(node, range._start[0], true)) {
|
|
815
|
+
range._start = [parent, index];
|
|
962
816
|
}
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
finally {
|
|
966
|
-
try {
|
|
967
|
-
if (_f && !_f.done && (_a = _e.return)) _a.call(_e);
|
|
817
|
+
if ((0, TreeAlgorithm_1.tree_isDescendantOf)(node, range._end[0], true)) {
|
|
818
|
+
range._end = [parent, index];
|
|
968
819
|
}
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
* greater than index, decrease its start offset by 1.
|
|
975
|
-
* 5. For each live range whose end node is parent and end offset is greater
|
|
976
|
-
* than index, decrease its end offset by 1.
|
|
977
|
-
*/
|
|
978
|
-
for (var _g = __values(DOMImpl_1.dom.rangeList), _h = _g.next(); !_h.done; _h = _g.next()) {
|
|
979
|
-
var range = _h.value;
|
|
980
|
-
if (range._start[0] === parent && range._start[1] > index) {
|
|
981
|
-
range._start[1] -= 1;
|
|
982
|
-
}
|
|
983
|
-
if (range._end[0] === parent && range._end[1] > index) {
|
|
984
|
-
range._end[1] -= 1;
|
|
985
|
-
}
|
|
820
|
+
if (range._start[0] === parent && range._start[1] > index) {
|
|
821
|
+
range._start[1]--;
|
|
822
|
+
}
|
|
823
|
+
if (range._end[0] === parent && range._end[1] > index) {
|
|
824
|
+
range._end[1]--;
|
|
986
825
|
}
|
|
987
826
|
}
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
827
|
+
/**
|
|
828
|
+
* 4. For each live range whose start node is parent and start offset is
|
|
829
|
+
* greater than index, decrease its start offset by 1.
|
|
830
|
+
* 5. For each live range whose end node is parent and end offset is greater
|
|
831
|
+
* than index, decrease its end offset by 1.
|
|
832
|
+
*/
|
|
833
|
+
for (const range of DOMImpl_1.dom.rangeList) {
|
|
834
|
+
if (range._start[0] === parent && range._start[1] > index) {
|
|
835
|
+
range._start[1] -= 1;
|
|
836
|
+
}
|
|
837
|
+
if (range._end[0] === parent && range._end[1] > index) {
|
|
838
|
+
range._end[1] -= 1;
|
|
992
839
|
}
|
|
993
|
-
finally { if (e_12) throw e_12.error; }
|
|
994
840
|
}
|
|
995
841
|
}
|
|
996
842
|
/**
|
|
@@ -999,28 +845,18 @@ function mutation_remove(node, parent, suppressObservers) {
|
|
|
999
845
|
* and iterator.
|
|
1000
846
|
*/
|
|
1001
847
|
if (DOMImpl_1.dom.features.steps) {
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
if (iterator._root._nodeDocument === node._nodeDocument) {
|
|
1006
|
-
DOMAlgorithm_1.dom_runNodeIteratorPreRemovingSteps(iterator, node);
|
|
1007
|
-
}
|
|
848
|
+
for (const iterator of (0, NodeIteratorAlgorithm_1.nodeIterator_iteratorList)()) {
|
|
849
|
+
if (iterator._root._nodeDocument === node._nodeDocument) {
|
|
850
|
+
(0, DOMAlgorithm_1.dom_runNodeIteratorPreRemovingSteps)(iterator, node);
|
|
1008
851
|
}
|
|
1009
852
|
}
|
|
1010
|
-
catch (e_13_1) { e_13 = { error: e_13_1 }; }
|
|
1011
|
-
finally {
|
|
1012
|
-
try {
|
|
1013
|
-
if (_k && !_k.done && (_c = _j.return)) _c.call(_j);
|
|
1014
|
-
}
|
|
1015
|
-
finally { if (e_13) throw e_13.error; }
|
|
1016
|
-
}
|
|
1017
853
|
}
|
|
1018
854
|
/**
|
|
1019
855
|
* 7. Let oldPreviousSibling be node’s previous sibling.
|
|
1020
856
|
* 8. Let oldNextSibling be node’s next sibling.
|
|
1021
857
|
*/
|
|
1022
|
-
|
|
1023
|
-
|
|
858
|
+
const oldPreviousSibling = node._previousSibling;
|
|
859
|
+
const oldNextSibling = node._nextSibling;
|
|
1024
860
|
// set document element node
|
|
1025
861
|
if (util_1.Guard.isDocumentNode(parent) && util_1.Guard.isElementNode(node)) {
|
|
1026
862
|
parent._documentElement = null;
|
|
@@ -1031,8 +867,8 @@ function mutation_remove(node, parent, suppressObservers) {
|
|
|
1031
867
|
node._parent = null;
|
|
1032
868
|
parent._children.delete(node);
|
|
1033
869
|
// assign siblings and children for quick lookups
|
|
1034
|
-
|
|
1035
|
-
|
|
870
|
+
const prev = node._previousSibling;
|
|
871
|
+
const next = node._nextSibling;
|
|
1036
872
|
node._previousSibling = null;
|
|
1037
873
|
node._nextSibling = null;
|
|
1038
874
|
if (prev)
|
|
@@ -1048,8 +884,8 @@ function mutation_remove(node, parent, suppressObservers) {
|
|
|
1048
884
|
* slot.
|
|
1049
885
|
*/
|
|
1050
886
|
if (DOMImpl_1.dom.features.slots) {
|
|
1051
|
-
if (util_1.Guard.isSlotable(node) && node._assignedSlot !== null && ShadowTreeAlgorithm_1.shadowTree_isAssigned(node)) {
|
|
1052
|
-
ShadowTreeAlgorithm_1.shadowTree_assignSlotables(node._assignedSlot);
|
|
887
|
+
if (util_1.Guard.isSlotable(node) && node._assignedSlot !== null && (0, ShadowTreeAlgorithm_1.shadowTree_isAssigned)(node)) {
|
|
888
|
+
(0, ShadowTreeAlgorithm_1.shadowTree_assignSlotables)(node._assignedSlot);
|
|
1053
889
|
}
|
|
1054
890
|
}
|
|
1055
891
|
/**
|
|
@@ -1058,9 +894,9 @@ function mutation_remove(node, parent, suppressObservers) {
|
|
|
1058
894
|
* parent.
|
|
1059
895
|
*/
|
|
1060
896
|
if (DOMImpl_1.dom.features.slots) {
|
|
1061
|
-
if (util_1.Guard.isShadowRoot(TreeAlgorithm_1.tree_rootNode(parent)) &&
|
|
1062
|
-
util_1.Guard.isSlot(parent) && util_2.isEmpty(parent._assignedNodes)) {
|
|
1063
|
-
ShadowTreeAlgorithm_1.shadowTree_signalASlotChange(parent);
|
|
897
|
+
if (util_1.Guard.isShadowRoot((0, TreeAlgorithm_1.tree_rootNode)(parent)) &&
|
|
898
|
+
util_1.Guard.isSlot(parent) && (0, util_2.isEmpty)(parent._assignedNodes)) {
|
|
899
|
+
(0, ShadowTreeAlgorithm_1.shadowTree_signalASlotChange)(parent);
|
|
1064
900
|
}
|
|
1065
901
|
}
|
|
1066
902
|
/**
|
|
@@ -1069,17 +905,17 @@ function mutation_remove(node, parent, suppressObservers) {
|
|
|
1069
905
|
* 12.2. Run assign slotables for a tree with node.
|
|
1070
906
|
*/
|
|
1071
907
|
if (DOMImpl_1.dom.features.slots) {
|
|
1072
|
-
|
|
1073
|
-
if (
|
|
1074
|
-
ShadowTreeAlgorithm_1.shadowTree_assignSlotablesForATree(TreeAlgorithm_1.tree_rootNode(parent));
|
|
1075
|
-
ShadowTreeAlgorithm_1.shadowTree_assignSlotablesForATree(node);
|
|
908
|
+
const descendant = (0, TreeAlgorithm_1.tree_getFirstDescendantNode)(node, true, false, (e) => util_1.Guard.isSlot(e));
|
|
909
|
+
if (descendant !== null) {
|
|
910
|
+
(0, ShadowTreeAlgorithm_1.shadowTree_assignSlotablesForATree)((0, TreeAlgorithm_1.tree_rootNode)(parent));
|
|
911
|
+
(0, ShadowTreeAlgorithm_1.shadowTree_assignSlotablesForATree)(node);
|
|
1076
912
|
}
|
|
1077
913
|
}
|
|
1078
914
|
/**
|
|
1079
915
|
* 13. Run the removing steps with node and parent.
|
|
1080
916
|
*/
|
|
1081
917
|
if (DOMImpl_1.dom.features.steps) {
|
|
1082
|
-
DOMAlgorithm_1.dom_runRemovingSteps(node, parent);
|
|
918
|
+
(0, DOMAlgorithm_1.dom_runRemovingSteps)(node, parent);
|
|
1083
919
|
}
|
|
1084
920
|
/**
|
|
1085
921
|
* 14. If node is custom, then enqueue a custom element callback
|
|
@@ -1088,20 +924,20 @@ function mutation_remove(node, parent, suppressObservers) {
|
|
|
1088
924
|
*/
|
|
1089
925
|
if (DOMImpl_1.dom.features.customElements) {
|
|
1090
926
|
if (util_1.Guard.isCustomElementNode(node)) {
|
|
1091
|
-
CustomElementAlgorithm_1.customElement_enqueueACustomElementCallbackReaction(node, "disconnectedCallback", []);
|
|
927
|
+
(0, CustomElementAlgorithm_1.customElement_enqueueACustomElementCallbackReaction)(node, "disconnectedCallback", []);
|
|
1092
928
|
}
|
|
1093
929
|
}
|
|
1094
930
|
/**
|
|
1095
931
|
* 15. For each shadow-including descendant descendant of node,
|
|
1096
932
|
* in shadow-including tree order, then:
|
|
1097
933
|
*/
|
|
1098
|
-
|
|
934
|
+
let descendant = (0, TreeAlgorithm_1.tree_getFirstDescendantNode)(node, false, true);
|
|
1099
935
|
while (descendant !== null) {
|
|
1100
936
|
/**
|
|
1101
937
|
* 15.1. Run the removing steps with descendant.
|
|
1102
938
|
*/
|
|
1103
939
|
if (DOMImpl_1.dom.features.steps) {
|
|
1104
|
-
DOMAlgorithm_1.dom_runRemovingSteps(descendant, node);
|
|
940
|
+
(0, DOMAlgorithm_1.dom_runRemovingSteps)(descendant, node);
|
|
1105
941
|
}
|
|
1106
942
|
/**
|
|
1107
943
|
* 15.2. If descendant is custom, then enqueue a custom element
|
|
@@ -1110,10 +946,10 @@ function mutation_remove(node, parent, suppressObservers) {
|
|
|
1110
946
|
*/
|
|
1111
947
|
if (DOMImpl_1.dom.features.customElements) {
|
|
1112
948
|
if (util_1.Guard.isCustomElementNode(descendant)) {
|
|
1113
|
-
CustomElementAlgorithm_1.customElement_enqueueACustomElementCallbackReaction(descendant, "disconnectedCallback", []);
|
|
949
|
+
(0, CustomElementAlgorithm_1.customElement_enqueueACustomElementCallbackReaction)(descendant, "disconnectedCallback", []);
|
|
1114
950
|
}
|
|
1115
951
|
}
|
|
1116
|
-
descendant = TreeAlgorithm_1.tree_getNextDescendantNode(node, descendant, false, true);
|
|
952
|
+
descendant = (0, TreeAlgorithm_1.tree_getNextDescendantNode)(node, descendant, false, true);
|
|
1117
953
|
}
|
|
1118
954
|
/**
|
|
1119
955
|
* 16. For each inclusive ancestor inclusiveAncestor of parent, and
|
|
@@ -1125,28 +961,18 @@ function mutation_remove(node, parent, suppressObservers) {
|
|
|
1125
961
|
* observer list.
|
|
1126
962
|
*/
|
|
1127
963
|
if (DOMImpl_1.dom.features.mutationObservers) {
|
|
1128
|
-
|
|
964
|
+
let inclusiveAncestor = (0, TreeAlgorithm_1.tree_getFirstAncestorNode)(parent, true);
|
|
1129
965
|
while (inclusiveAncestor !== null) {
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
source: registered
|
|
1138
|
-
});
|
|
1139
|
-
}
|
|
966
|
+
for (const registered of inclusiveAncestor._registeredObserverList) {
|
|
967
|
+
if (registered.options.subtree) {
|
|
968
|
+
node._registeredObserverList.push({
|
|
969
|
+
observer: registered.observer,
|
|
970
|
+
options: registered.options,
|
|
971
|
+
source: registered
|
|
972
|
+
});
|
|
1140
973
|
}
|
|
1141
974
|
}
|
|
1142
|
-
|
|
1143
|
-
finally {
|
|
1144
|
-
try {
|
|
1145
|
-
if (_m && !_m.done && (_d = _l.return)) _d.call(_l);
|
|
1146
|
-
}
|
|
1147
|
-
finally { if (e_14) throw e_14.error; }
|
|
1148
|
-
}
|
|
1149
|
-
inclusiveAncestor = TreeAlgorithm_1.tree_getNextAncestorNode(parent, inclusiveAncestor, true);
|
|
975
|
+
inclusiveAncestor = (0, TreeAlgorithm_1.tree_getNextAncestorNode)(parent, inclusiveAncestor, true);
|
|
1150
976
|
}
|
|
1151
977
|
}
|
|
1152
978
|
/**
|
|
@@ -1156,7 +982,7 @@ function mutation_remove(node, parent, suppressObservers) {
|
|
|
1156
982
|
*/
|
|
1157
983
|
if (DOMImpl_1.dom.features.mutationObservers) {
|
|
1158
984
|
if (!suppressObservers) {
|
|
1159
|
-
MutationObserverAlgorithm_1.observer_queueTreeMutationRecord(parent, [], [node], oldPreviousSibling, oldNextSibling);
|
|
985
|
+
(0, MutationObserverAlgorithm_1.observer_queueTreeMutationRecord)(parent, [], [node], oldPreviousSibling, oldNextSibling);
|
|
1160
986
|
}
|
|
1161
987
|
}
|
|
1162
988
|
/**
|
|
@@ -1165,9 +991,8 @@ function mutation_remove(node, parent, suppressObservers) {
|
|
|
1165
991
|
*/
|
|
1166
992
|
if (DOMImpl_1.dom.features.steps) {
|
|
1167
993
|
if (util_1.Guard.isTextNode(node)) {
|
|
1168
|
-
DOMAlgorithm_1.dom_runChildTextContentChangeSteps(parent);
|
|
994
|
+
(0, DOMAlgorithm_1.dom_runChildTextContentChangeSteps)(parent);
|
|
1169
995
|
}
|
|
1170
996
|
}
|
|
1171
997
|
}
|
|
1172
|
-
exports.mutation_remove = mutation_remove;
|
|
1173
998
|
//# sourceMappingURL=MutationAlgorithm.js.map
|