[Bug 27310] Virtual DOM and DOM diff

https://www.w3.org/Bugs/Public/show_bug.cgi?id=27310

Tab Atkins Jr. <jackalmage@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jackalmage@gmail.com

--- Comment #1 from Tab Atkins Jr. <jackalmage@gmail.com> ---
In particular, the reason *why* they do "diffs" and minimal edits is to
preserve the "invisible state" of elements like form inputs - there's no way to
know or restore the input state of a text input if it's in the middle of doing
IME, for example.

In a previous EWS, we discussed having a way to extract this state in an
opaque-to-JS object, and be able to spam it into another element of the same
type, so there wasn't as much need for tree-diffing.  They could instead just
crawl the before-change tree, extract the states, and then crawl the
after-change tree and restore them.

This avoids us having to define a specific tree-diffing algo, which is
non-trivial and has a bunch of fiddly bits that can be adjusted.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Wednesday, 12 November 2014 01:48:18 UTC