vsedach/Parenscript

Bug in inner-html and attribute DOM utilities

Closed this issue · 0 comments

(inner-html (chain document document-element))

wrongly expands to

document.documentElement['inner-h-t-m-l'];

when it should expand to

document.documentElement.innerHTML;

inner-html is defined as

(defpsmacro inner-html (el)
  `(@ ,el :inner-h-t-m-l))

I guess :inner-h-t-m-l should be inner-html, that is, it should not be a keyword symbol.

A similar problem and solution with the attribute macro.