-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add node cloning functions with replace capability * Add changeset * Clone attributes * Clean up * Extract API * Update clone functions to accept `Iterable<Element>` * Add interface for gathering replace predicate and elements to replace with * Use `Selective` and currify functions * Fix shadow and content not being cloned and add tests for that * Extract API * Update cloning functions to discard `extraData` and add doc strings * Update doc strings * Add remark about externalId to doc strings * Extract API * Update dependencies * Extract shadow cloning and simplify tests * Extract API * Clean up --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
ff300f9
commit 2ce1a8c
Showing
15 changed files
with
455 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@siteimprove/alfa-dom": minor | ||
--- | ||
|
||
**Added:** New functions `Node.clone` for cloning nodes and optionally replacing child elements based on a predicate. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.