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

Some use cases do not work well when HTML2IncDom is called #371

Open
matuzalemsteles opened this issue Apr 24, 2018 · 1 comment
Open

Some use cases do not work well when HTML2IncDom is called #371

matuzalemsteles opened this issue Apr 24, 2018 · 1 comment

Comments

@matuzalemsteles
Copy link
Contributor

Disclaimer

When we have an application in soy that the value of our STATE is set to isHTML for true:

MyComponent.STATE = {
    text: {
        isHTML: true,
        value: '<p><strong><em><u><a href="http://t4gdgreg" target="">rtetettrttrrtert</a></u></em></strong></p>'
    }
}

It calls the function HTML2IncDom.buildFn(...) to do the parser, but we have some use cases like the one above that it returns the wrong parser, this is reflected in the DOM, it seems to be some problem with the tag a inside the parser, but not sure about that.

This is quite common to happen in editors like AlloyEditor, to stylize the text.

Current behavior

screen shot 2018-04-24 at 14 34 10

Expected behavior

screen shot 2018-04-24 at 14 50 14

@brunobasto
Copy link

/cc @alinedoleron

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

No branches or pull requests

2 participants