twigjs/twig.js

value attribute stripped from option elements

kmonahan opened this issue · 2 comments

Seeing an odd issue where include <option value="whatever">Some Text</option> results in the output <option>Some Text</option>, with the value attribute stripped. Other attributes work as expected, e.g. <option myValue="whatever">Some Text</option> results in <option myvalue="whatever">Some Text</option>. The same issue does not occur with <input> elements, just with <option> elements inside a <select>.

Can you please provide an example of it working in TwigPHP via twigfiddle and an example of it not working in twig.js using this template?

Closing as I've finally chased the issue down to a different library