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

fix(textContent): make page.textContent(selector) atomic #2717

Merged
merged 1 commit into from
Jun 26, 2020
Merged

fix(textContent): make page.textContent(selector) atomic #2717

merged 1 commit into from
Jun 26, 2020

Conversation

dgozman
Copy link
Contributor

@dgozman dgozman commented Jun 25, 2020

We now query selector and take textContent synchronously. This avoids any issues with async processing: node being recycled, detached, etc.

For this, some infrastructure has been moved to dom.ts. More methods will follow with the same atomic pattern and reuse it.

Drive-by: fixed selector engine names being sometimes case-sensitive and sometimes not.

We now query selector and take textContent synchronously. This
avoids any issues with async processing: node being recycled,
detached, etc.

More methods will follow with the same atomic pattern.

Drive-by: fixed selector engine names being sometimes case-sensitive
and sometimes not.
@dgozman dgozman merged commit b54303a into microsoft:master Jun 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants