I can reliably get the value of a text type input box using let txtcont = clickedElement.value;
.
I use this because some of the text entry boxes do not have an ID attached.
In blogger, for example, if you do the html editing element (plain text where you manually code the html), which is an element like this:
<body g_editable="true" hidefocus="true" class="editable " id="postingComposeBox" style="min-width: 0px; width: 653px;" role="textbox" contenteditable="true"><br></body>
You get the value from the the above.
If you switch to “Compose” mode, where the html is displayed as rendered as styled (bold, italic, etc):
<body g_editable="true" hidefocus="true" class="editable " id="postingComposeBox" style="min-width: 0px; width: 653px;" role="textbox" contenteditable="true"><br></body>
I do not extract the value, clickedElement.value;
is undefined.
What am I missing?