rabbibotton / clog

CLOG - The Common Lisp Omnificent GUI
Other
1.51k stars 104 forks source link

Wrong reaction on :html-id 0 #94

Closed apr3vau closed 2 years ago

apr3vau commented 2 years ago

Hello! I have discovered a new problem of my favorite clog😂 When I ordered a clog-element as :html-id 0, all operation on it will certainly redirect to <body>... It's difficult to say but it can be easily produced by add :html-id 0 to the 70 line of 08-tutorial, change it to (let* ((div1 (create-div body :html-id 0)). It is a little problem, but I hope it will do some help. :D image

rabbibotton commented 2 years ago

In general I wouldn't use :html-id but if have a need (want to make the div easily available to JS) I would use some unique name not a number that may get it confused internally. I will see about documentation to not use a number as a custom html-id unless prefixed by at least one character.

apr3vau commented 2 years ago

In general I wouldn't use :html-id but if have a need (want to make the div easily available to JS) I would use some unique name not a number that may get it confused internally. I will see about documentation to not use a number as a custom html-id unless prefixed by at least one character.

Thank you! I will try to use another way! 😆