Skip to content

Conversation

@smeijer
Copy link
Member

@smeijer smeijer commented May 25, 2020

Incorrect id attributes, can lead to a white-screen. One example of an invalid query that causing this is:

<button 
  id=
  name="submit" 
/>
container.querySelector('button')

playground

Everyone understands that this isn't valid HTML, but... it happens when we are typing in the editor.

@smeijer smeijer added the bug Something isn't working label May 25, 2020
@smeijer smeijer self-assigned this May 25, 2020
@smeijer smeijer force-pushed the feature/fix-id-escape branch from 3c315c3 to 0e44e84 Compare May 25, 2020 08:30
@smeijer
Copy link
Member Author

smeijer commented May 25, 2020

Same query is running fine on the deploy-preview:

image

@smeijer smeijer merged commit bf21003 into master May 25, 2020
@smeijer smeijer deleted the feature/fix-id-escape branch May 25, 2020 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant