Skip to content

Refactor designMode/innerText#5588

Merged
annevk merged 2 commits intomasterfrom
annevk/getter-setter
Jun 2, 2020
Merged

Refactor designMode/innerText#5588
annevk merged 2 commits intomasterfrom
annevk/getter-setter

Conversation

@annevk
Copy link
Member

@annevk annevk commented May 30, 2020

Endless yak shaving is endless. See #5560 for context.


/acknowledgements.html ( diff )
/dom.html ( diff )
/index.html ( diff )
/interaction.html ( diff )

@annevk annevk mentioned this pull request May 30, 2020
3 tasks
@annevk annevk force-pushed the annevk/getter-setter branch from 17ddc93 to 3fe424e Compare May 30, 2020 10:35
Copy link
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

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

LGTM, great improvements. I noticed a few other things you could touchup and left them as comments, but they are totally optional since you're already in yak-shaving territory.

be at the start of <span>this</span>.</p></li>

<li><p>Run the <span>focusing steps</span> for <span>this</span>'s <span>document
element</span>, if non-null.</p></li>
Copy link
Member

Choose a reason for hiding this comment

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

Nit: "If this's document element is non-null, then run the focusing steps for this's document element" would be much clearer IMO.

<li><p>Set <span>this</span>'s <span>design mode enabled</span> to true.</p></li>

<li><p>Reset <span>this</span>'s <span>active range</span>'s start and end boundary points to
be at the start of <span>this</span>.</p></li>
Copy link
Member

Choose a reason for hiding this comment

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

Optional: this could have more cross-links and be more rigorous, e.g. https://dom.spec.whatwg.org/#concept-range-start and setting the offset to 0 instead of "the start of this".

@annevk annevk merged commit b16ce0d into master Jun 2, 2020
@annevk annevk deleted the annevk/getter-setter branch June 2, 2020 05:21
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.

2 participants