Closed ingted closed 3 years ago
SetText
is a member on Elt
, the type representing HTML/DOM elements, whereas a Doc
is "document" (possibly empty or with multiple nodes). This has always been the cause of a lot of misunderstanding, namely that a Doc
is not a one-to-one mapping to an actual HTML tag, it's "more". Assuming that your pre
is a pre
DOM placeholder node, you should create it with Elt.pre
to give you an Elt
as opposed to a Doc
, unlocking access to SetText
. @Tarmil or @Jand42 - any other ideas here?
Thanks for the information!!! Now this works for me:
(pre :?> Elt).SetText
Really cool!!!
How do I change my code after migration of latest UI library?
The SetText doesn't work now...