Skip to content

changed? not propagated properly #7

@noprompt

Description

@noprompt

Observe

(require '[fast-zip.core :as fz])
(require '[clojure.zip :as z])

(def xml {:content [{:content ["foo"]}]})

(-> (fz/xml-zip xml)
    (fz/append-child {:content ["bar"]})
    (fz/down)
    (.. path changed?))
;; => nil
(-> (z/xml-zip xml)
    (z/append-child {:content ["bar'"]})
    (z/down)
    (second)
    (get-in [:ppath :changed?]))
;; => true

I'm not sure the best way to fix this right away but I'm investigating it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions