Shinmera / plump

Practically Lenient and Unimpressive Markup Parser for Common Lisp
https://shinmera.github.io/plump
zlib License
119 stars 21 forks source link

Fix incompatible nesting-node field clone #36

Closed piknik closed 3 years ago

piknik commented 3 years ago

The following code:

(plump:clone-node (plump:parse "<html><head></head><body><p>Hi</p></body></html>"))

gives the following error:

There is no applicable method for the generic function
  #<STANDARD-GENERIC-FUNCTION PLUMP-DOM:PARENT (1)>
when called with arguments
  (#<PLUMP-DOM:ROOT {100444A3C3}>).

This pull request would fix that by removing attempted assignment of the parent field.

Shinmera commented 3 years ago

Thanks!