Forum Bugs

Post-layout loaded images are not embedded correctly

StoneCypher
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>

  <head>

    <script type="text/javascript">

      function go() {

        var i = document.createElement('img');
        i.src = 'someimage.png';
        document.getElementById('tgt').appendChild(i);

      }

    </script>

  </head>

  <body onload="go();">

    <div id="tgt"></div>

  </body>

</html>


Assuming you provide a someimage.png, this works in all browsers as expected, but no image is placed into the PDF.

John Haugeland is http://fullof.bs/

mikeday
The src property is not supported yet, so you need to explicitly call setAttribute().
StoneCypher
Thank god for source control, because I was halfway through a ridiculously complicated workaround.

Had already forgotten about unimplemented properties. (Hands head in shame)

John Haugeland is http://fullof.bs/