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

Still cannot add attribute with no value. #42

Closed
adjenks opened this issue Sep 8, 2016 · 1 comment
Closed

Still cannot add attribute with no value. #42

adjenks opened this issue Sep 8, 2016 · 1 comment
Labels

Comments

@adjenks
Copy link

adjenks commented Sep 8, 2016

As mentioned in #41 :

I configured the source adapter to use HTML5 as you suggested. However I still receive this error if I do not add a value to the "selected" attribute:
Type: Goetas\Twital\Exception Message: Goetas\Twital\Attribute\AttrAttribute::findAttrParts error in 'selected' File: /var/www/commlog_dev/vendor/goetas/twital/src/Goetas/Twital/Attribute/AttrAttribute.php Line: 108

This crashes: t:attr="language['code'] == userLang ? selected">
But this doesn't: t:attr="language['code'] == userLang ? selected='' ">
But I don't want the empty string.
Thank you for your time.

@goetas goetas added the bug label Sep 9, 2016
@goetas
Copy link
Owner

goetas commented Sep 9, 2016

Ah, you are right, now I see the problem.

The HTML step is done too early.... :(

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

No branches or pull requests

2 participants