1. Stephen McKamey
  2. duel

Issues

Issue #8 resolved

Bug in hybrid deferred execution of attributes

Anonymous created an issue

There appears to be a bug in the server-side output of a tag attribute when the data-binding expression references a value not found in extras. It attempts to emit the delayed binding inside the attribute:

<input type="hidden" name="foo" value="<%= foo %>" />

Incorrectly emits:

<input type="hidden" name="foo" value="<script type="text/javascript">duel(function() { return ( foo ); })().write();</script>" />

Comments (4)

  1. Stephen McKamey repo owner

    This actually isn't a regression as it never correctly worked.

    If it is known to always be deferred at compile time, then it works, and if it is known to always be resolvable at compile time then it works. The hybrid structure is being constructed too far down to work for attributes since it doesn't know the context.

  2. Log in to comment