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

Use textContent instead of innerHTML for extracting logs from headless browser tests #1233

Merged
merged 1 commit into from
Feb 8, 2019

Conversation

fitzgen
Copy link
Member

@fitzgen fitzgen commented Feb 8, 2019

Easier to maintain fidelity and less likely to be sabotaged by XSS and <script> tags.

Fixes #1232

…s browser tests

Easier to maintain fidelity and less likely to be sabotaged by XSS and
`<script>` tags.

Fixes rustwasm#1232
@fitzgen
Copy link
Member Author

fitzgen commented Feb 8, 2019

I should have caught this in #898...

@fitzgen
Copy link
Member Author

fitzgen commented Feb 8, 2019

Not sure how to test our log output of the runner, but:

screen shot 2019-02-08 at 10 34 58 am

@alexcrichton alexcrichton merged commit 812c6bf into rustwasm:master Feb 8, 2019
@alexcrichton
Copy link
Contributor

👍

@fitzgen fitzgen deleted the fix-issue-1232 branch February 8, 2019 10:12
@dbrgn
Copy link
Contributor

dbrgn commented Feb 8, 2019

Thanks for the quick fix!

@fitzgen fitzgen added the TWiRaWA Nominate this PR for inclusion in the next issue of This Week in Rust and WebAssembly label Feb 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TWiRaWA Nominate this PR for inclusion in the next issue of This Week in Rust and WebAssembly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants