Repository navigation
Conversation
See whatwg/dom#819. Verified with jsdom/jsdom#2925.
|
|
||
| if (oldDocument !== newDocument) { | ||
| for (const inclusiveDescendant of shadowIncludingInclusiveDescendantsIterator(node)) { | ||
| if (!doItAnyway && DocumentFragment.isImpl(inclusiveDescendant) && inclusiveDescendant === node && node._host) { |
There was a problem hiding this comment.
| if (!doItAnyway && DocumentFragment.isImpl(inclusiveDescendant) && inclusiveDescendant === node && node._host) { | |
| if (!forceDocumentFragmentAdoption && DocumentFragment.isImpl(inclusiveDescendant) && inclusiveDescendant === node && node._host) { |
|
|
||
| // https://dom.spec.whatwg.org/#concept-node-adopt | ||
| _adoptNode(node) { | ||
| _adoptNode(node, doItAnyway = false) { |
There was a problem hiding this comment.
| _adoptNode(node, doItAnyway = false) { | |
| _adoptNode(node, forceDocumentFragmentAdoption = false) { |
| _adoptingSteps() { | ||
| const doc = this._appropriateTemplateContentsOwnerDocument(this._ownerDocument); | ||
| doc._adoptNode(this._templateContents); | ||
| doc._adoptNode(this._templateContents, /* doItAnyway= */ true); |
There was a problem hiding this comment.
| doc._adoptNode(this._templateContents, /* doItAnyway= */ true); | |
| doc._adoptNode(this._templateContents, /* forceDocumentFragmentAdoption= */ true); |
There was a problem hiding this comment.
There should be a space between forceDocumentFragmentAdoption and = to match how this is done in other files.
| doc._adoptNode(this._templateContents, /* doItAnyway= */ true); | |
| doc._adoptNode(this._templateContents, /* forceDocumentFragmentAdoption = */ true); |
There was a problem hiding this comment.
@ExE-Boss, we've already discussed how unsolicited reviews are not welcome. They are especially unwelcome when they are on the PRs of contributors, instead of core members; we do not want the jsdom project to be a place where submitting a PR means you get random people coming by and critiquing your work, disconnected from the project maintainers.
|
@domenic if you could associate this with web-platform-tests/wpt#22504 somehow to see what's still missing that'd be great. |
|
@domenic ping on the above? I forgot about this for a bit, but I believe it's still something that needs to be done. |
See whatwg/dom#819 for context.