Skip to content

refactor: only parse queries in sandbox #260

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

Merged
merged 3 commits into from
Jul 29, 2020
Merged

Conversation

smeijer
Copy link
Member

@smeijer smeijer commented Jul 29, 2020

What:
It's a long story, that is partially explained in #255 (comment), but long story short, we have multiple sources where we evaluate the query against the markup.

This pull-request changes that. The in-memory frame still feels like the best theoretical solution to me, but evaluating in the visible iframe, is the more practical solution.

I've removed the runInSandbox method from the parser. We now always use runUnsafe (in the DOM, against a visual element).

Why:
Because the query results in an in-memory iframe differ from the results in a visible iframe.

How:
image

Checklist:

  • Tests
  • Ready to be merged

fixes #255

@smeijer smeijer added the chore label Jul 29, 2020
@smeijer smeijer self-assigned this Jul 29, 2020
@smeijer smeijer merged commit 89a0420 into develop Jul 29, 2020
@smeijer smeijer deleted the feature/refactor-parser branch July 29, 2020 10:24
@marcosvega91
Copy link
Member

giphy-downsized

@smeijer smeijer mentioned this pull request Jul 29, 2020
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Suggest label over text
2 participants