Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor designMode/innerText #5588

Merged
merged 2 commits into from
Jun 2, 2020
Merged

Refactor designMode/innerText #5588

merged 2 commits into from
Jun 2, 2020

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
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