Skip to content
This repository was archived by the owner on Jun 20, 2025. It is now read-only.

Conversation

vrana
Copy link
Contributor

@vrana vrana commented Nov 18, 2020

This prevents circumventing our checks by code like <script text="{$evil}"> or <i innerHTML="{$evil}"> in Soy IDOM.

The newly added test is flaky. Any idea why?

This prevents circumventing our checks by code like `<script
text="{$evil}">` or `<i innerHTML="{$evil}">` in Soy IDOM.

The newly added test is flaky. Any idea why?
@iteriani
Copy link
Contributor

Shouldn't the soy compiler be handling this?

@vrana
Copy link
Contributor Author

vrana commented Nov 19, 2020

This seems like a better place. I see no point in abusing attr() for setting properties like innerHTML that are not real attributes.

@iteriani
Copy link
Contributor

OK. I'm a bit apprehensive about landing a breaking change since people use Incremental DOM at HEAD. Do you mind moving this internally into google3 soy?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants