How to execute JavaScript after inserting into element.innerHTML automatically

Here is a scenario: you have some software/component that inserts partial HTML into page using JavaScript element.innerHTML function; you can insert any HTML tags including <script>; you can not call any JS function (software/component does not have such functionality), and inserted script using innerHTML is not executed automatically. After some lost time trying to come […]

CSS first-letter problem with display:inline

According to w3.org first-letter pseudo class works only with block level elements. Here is a paragraph from w3: The :first-letter pseudo-element must select the first letter of the first line of a block, if it is not preceded by any other content (such as images or inline tables) on its line. Code with label that […]