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

issue in html attribute when value has spaces #76

Open
Tarekajaj opened this issue Jul 20, 2020 · 1 comment
Open

issue in html attribute when value has spaces #76

Tarekajaj opened this issue Jul 20, 2020 · 1 comment

Comments

@Tarekajaj
Copy link

Tarekajaj commented Jul 20, 2020

I have the following template

    <div data-name="{{name}}">
    {{name}}
    </div>

and name has the value test1 test2,

rendering the template give the following output:

    <div data-name="test1" test2="">
    test1 test2
    </div>

Any idea what's the problem here?

Regards,

@CheBo75
Copy link

CheBo75 commented Jul 28, 2020

Same here

<input name="title" type="text" placeholder="your title" value="{{title}}" data-value="{{title}}">

results in

<input type="text" placeholder="" name="title">
<div pseudo="placeholder">your title</div>
<div contenteditable="plaintext-only">data-value=</div>

when parsing "", " " or null

the effect seems to concern every template var that is parsed with an empty value. it kills the quote at the end of {{title}}"

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