Commit Graph

11 Commits

Author SHA1 Message Date
David Glasser
26c7258027 Follow-up to 442b86: fix re-rendering of unfocused radio buttons.
Before 442b86, this worked because we always unconditionally made tgt checked if
src was checked. With the new 3-way-diff algorithm for value and checkedness, we
need to save the checkedness of tgt before any DOM manipulation that could
uncheck it.
2012-12-27 00:06:42 -08:00
David Glasser
442b86eebd Preserve CHECKED status similarly to VALUE.
Fixes #510.
2012-12-04 14:47:40 -08:00
David Glasser
723154e472 When preserving elements with values, preserve the value of elements unless the
server's rendering has changed.

This fixes two independent issues:

  - If the user has changed the value in a preserved field, and something causes
    the field to be rerendered, and the re-rendering renders the same value that
    was originally rendered, this now preserves the user's change rather than
    reverting to the original value.

  - INPUTs with type other than TEXT can now have reactive values (eg,
    type=SUBMIT).
2012-12-04 14:47:40 -08:00
David Glasser
401c0cfa21 Better error message from Spark when patching bad HTML fails.
Fixes #512.
2012-11-28 13:22:29 -08:00
David Greenspan
e80066a9ef DomUtils.elementOrder rename and flip
=> compareElementIndex and returns -1,0,1 in the
tradition of comparators rather than the opposite
2012-09-17 11:47:46 -07:00
David Greenspan
755b1bcfa2 fix Spark constant patching by improving elementContains (fix #323) 2012-09-15 13:34:04 -07:00
David Greenspan
32239218c9 fix IE7 spurious 'change' in copyAttributes not spark 2012-08-21 03:11:39 -04:00
David Greenspan
88d13f1862 constant landmark only gets render() if not preserved 2012-08-08 14:39:14 -07:00
David Greenspan
f3a66b59f2 fix region patching 2012-08-08 14:37:25 -07:00
David Greenspan
5e8b033f61 camel-case Liverange 2012-08-06 18:38:43 -07:00
David Greenspan
4f52054cd9 patching works in Spark! 2012-08-02 19:39:00 -07:00