在库的Common Lisp生态系统中,如何使用Clss and/or Plump而不是Parenscript来获取DOM的活动元素?

In the Common Lisp ecossystem of libraries, how to get the active element of the DOM using Clss and/or Plump instead of Parenscript?

在浏览器的控制台 (firefox) 中使用 javascript,我可以:

document.activeElement.placeholder

如果鼠标光标在 Whosebug 搜索栏中,上面的代码 returns:

"Search…"

我可以使用 Parenscript 实现相同的效果:

(ps:chain document active-element placeholder)

是否可以使用 CL Plump (manual) and/or Clss (manual) 而不是 Parenscript 来实现相同的输出?

如果可以,怎么做?

我曾尝试在上面的文档参考中找到它,但找不到。不过,我是 CL 的新手。也许我错过了什么。

谢谢。

使用 Parenscript 时,您是通过 JavaScript 使用浏览器引擎。浏览器在表示文档本身的模型之上具有用户交互的概念,例如焦点。

Plump 和 CLSS 不是浏览器引擎。他们只有已解析的 HTML 文档的对象模型。他们没有像用户交互这样的模型,所以他们也没有像 »active element« 这样的东西。