Skip to content

Editorial: improve ensure pre-insert validity#1484

Merged
annevk merged 4 commits into
mainfrom
annevk/pre-insert-validity
Jul 8, 2026
Merged

Editorial: improve ensure pre-insert validity#1484
annevk merged 4 commits into
mainfrom
annevk/pre-insert-validity

Conversation

@annevk

@annevk annevk commented Jul 8, 2026

Copy link
Copy Markdown
Member

This improves on two fronts:

  1. Removing ambiguity by having individual conditions more clearly separated.
  2. Reducing duplication by making the algorithm suitable for the replace operation as well.

Fixes #870.


Preview | Diff

annevk added 2 commits July 8, 2026 07:39
This improves on two fronts:

1. Removing ambiguity by having individual conditions more clearly separated.
2. Reducing duplication by making the algorithm suitable for the replace operation as well.

@noamr noamr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM % nit

Comment thread dom.bs Outdated

<li><p>If <var>node</var> is a {{CharacterData}} <a for=/>node</a>, then return.

<li><p>Let <var>exclude</var> be <var>child</var> if <var>isReplace</var> is true; otherwise null.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe call this childToExclude or replacedChild? it reads like a boolean otherwise

@annevk
annevk merged commit c7f757c into main Jul 8, 2026
2 checks passed
@annevk
annevk deleted the annevk/pre-insert-validity branch July 8, 2026 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Trouble understanding a parable of specification, under the "ensure pre-insertion validity" list of steps

2 participants