Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf-wiki.git/shortlog/0aeb2c61055dec3b0192c722b88fac425f2858af
...commit 
http://git.netsurf-browser.org/netsurf-wiki.git/commit/0aeb2c61055dec3b0192c722b88fac425f2858af
...tree 
http://git.netsurf-browser.org/netsurf-wiki.git/tree/0aeb2c61055dec3b0192c722b88fac425f2858af

The branch, master has been updated
       via  0aeb2c61055dec3b0192c722b88fac425f2858af (commit)
      from  6aec7716abfd7974c289c9e876c6fe837731259c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commitdiff 
http://git.netsurf-browser.org/netsurf-wiki.git/commit/?id=0aeb2c61055dec3b0192c722b88fac425f2858af
commit 0aeb2c61055dec3b0192c722b88fac425f2858af
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>

    Dev weekend: Current forms handling.

diff --git a/developer-weekend/may-2020.mdwn b/developer-weekend/may-2020.mdwn
index f8e7333..85113d0 100644
--- a/developer-weekend/may-2020.mdwn
+++ b/developer-weekend/may-2020.mdwn
@@ -68,6 +68,39 @@ Topics
 * Text layout (maybe).
 * Selection cleanups.
 
+Write ups
+=========
+
+Current Forms Handling
+----------------------
+
+### DOM / Gadget syncronisation
+
+Currently both the DOM and the NetSurf gadget for form input elements
+store a representation of the current state of the form element.
+JavaScript can modifiy the representation in the DOM.  Users can
+modifiy the repreentation in the form gadget.
+
+There is a `form_gadget_sync_with_dom()` in NetSurf's `form.c`.
+This syncronises the data both ways.  If the DOM has changed, then
+the gadget representation is updated, and if the gadget has changed
+then the DOM is updated.  If both have changed, the gadget version
+wins.
+
+The `form_gadget_sync_with_dom()` is called from:
+
+* **[html/dom_event.c]** The DOMSubtreeModified callback.
+* **[html/form.c]** The `form_gadget_update_value()` function, which is called
+  from:
+  * **[html/box_textarea.c]** The desktop/textarea widget callback for
+    TEXTAREA_MSG_TEXT_MODIFIED.
+  * **[html/html.c] The file upload handling in
+    `html_set_file_gadget_filename()`.
+* **[html/forms.c]** The `parse_input_element` function, which ends up getting
+  called during box tree construction of the special box elements in
+  **[html/box_special.c]**.
+
+
 Tasks
 =====
 


-----------------------------------------------------------------------

Summary of changes:
 developer-weekend/may-2020.mdwn |   33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/developer-weekend/may-2020.mdwn b/developer-weekend/may-2020.mdwn
index f8e7333..85113d0 100644
--- a/developer-weekend/may-2020.mdwn
+++ b/developer-weekend/may-2020.mdwn
@@ -68,6 +68,39 @@ Topics
 * Text layout (maybe).
 * Selection cleanups.
 
+Write ups
+=========
+
+Current Forms Handling
+----------------------
+
+### DOM / Gadget syncronisation
+
+Currently both the DOM and the NetSurf gadget for form input elements
+store a representation of the current state of the form element.
+JavaScript can modifiy the representation in the DOM.  Users can
+modifiy the repreentation in the form gadget.
+
+There is a `form_gadget_sync_with_dom()` in NetSurf's `form.c`.
+This syncronises the data both ways.  If the DOM has changed, then
+the gadget representation is updated, and if the gadget has changed
+then the DOM is updated.  If both have changed, the gadget version
+wins.
+
+The `form_gadget_sync_with_dom()` is called from:
+
+* **[html/dom_event.c]** The DOMSubtreeModified callback.
+* **[html/form.c]** The `form_gadget_update_value()` function, which is called
+  from:
+  * **[html/box_textarea.c]** The desktop/textarea widget callback for
+    TEXTAREA_MSG_TEXT_MODIFIED.
+  * **[html/html.c] The file upload handling in
+    `html_set_file_gadget_filename()`.
+* **[html/forms.c]** The `parse_input_element` function, which ends up getting
+  called during box tree construction of the special box elements in
+  **[html/box_special.c]**.
+
+
 Tasks
 =====
 


-- 
NetSurf Developer Wiki Backing Store
_______________________________________________
netsurf-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to