This repository was archived by the owner on Oct 4, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -71,13 +71,13 @@ exports.normalize = function (node) {
71
71
72
72
exports . clone = function ( node ) {
73
73
return function ( ) {
74
- return node . clone ( false ) ;
74
+ return node . cloneNode ( false ) ;
75
75
} ;
76
76
} ;
77
77
78
78
exports . deepClone = function ( node ) {
79
79
return function ( ) {
80
- return node . clone ( false ) ;
80
+ return node . cloneNode ( true ) ;
81
81
} ;
82
82
} ;
83
83
Original file line number Diff line number Diff line change @@ -86,10 +86,10 @@ foreign import setTextContent :: forall eff.
86
86
foreign import normalize :: forall eff . Node -> Eff (dom :: DOM | eff ) Unit
87
87
88
88
-- | Clones the node without cloning the node's descendants.
89
- foreign import clone :: forall eff . Node -> Eff (dom :: DOM | eff ) Unit
89
+ foreign import clone :: forall eff . Node -> Eff (dom :: DOM | eff ) Node
90
90
91
91
-- | Clones the node and its descendants.
92
- foreign import deepClone :: forall eff . Node -> Eff (dom :: DOM | eff ) Unit
92
+ foreign import deepClone :: forall eff . Node -> Eff (dom :: DOM | eff ) Node
93
93
94
94
-- | Checks whether two nodes are equivalent.
95
95
foreign import isEqualNode :: forall eff .
You can’t perform that action at this time.
0 commit comments