We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It seems to me class mapping fails for unquoted class attributes.
html5 does not require quoted attributes. We're in html5 now.
Here's a printout demonstrating the issue:
function testPlates() { console.log(arguments.callee.toString()) map.class('appName').to('title') var o = { title: 'Boss' } console.log('1', plates.bind('<div class=appName></div>', o, map)) console.log('2', plates.bind('<div class="appName"></div>', o, map)) } 1 <div class=appName></div> 2 <div class="appName">Boss</div>
case 2 works as expected BUG: case 1 was expected to have Boss inserted into the tags body
1 <div class=appName>Boss</div>
The text was updated successfully, but these errors were encountered:
node.js, plates 0.4.6
Sorry, something went wrong.
could this be a simple regexp fix?
Yes it would be a simple regexp change, the fix can probably be combined with #63 as that probably also caused by a to-strict regexp.
No branches or pull requests
It seems to me class mapping fails for unquoted class attributes.
html5 does not require quoted attributes. We're in html5 now.
Here's a printout demonstrating the issue:
case 2 works as expected
BUG: case 1 was expected to have Boss inserted into the tags body
The text was updated successfully, but these errors were encountered: