On Wed, Jul 10, 2019 at 07:10:27PM +0300, Dmitry Shachnev wrote:
> I managed to reproduce this with C code (not Python). Attached is a test
> case that is small from C point of view (trimming down the HTML part would
> be more difficult).

After several hours of debugging, I was able to trim the HTML to the
following:

  <!DOCTYPE html>
  <html>
    <head>
      <script type="text/javascript">
      for (var i = 0; i < 2; i++) {
        var foo = {};
        foo.bar = null;
      }
      </script>
    </head>
    <body>
    </body>
  </html>

To reproduce, save this to test.html and in my test.c, replace the URL
with file:///path/to/test.html.

In case of Sphinx, the following code in jQuery broke it:

  jQuery.each( {
      margin: "",
      padding: "",
      border: "Width"
  }, function( prefix, suffix ) {
      jQuery.cssHooks[ prefix + suffix ] = {
          ...
      };

      if ( prefix !== "margin" ) {
          jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber;
      }
  } );

--
Dmitry Shachnev

Attachment: signature.asc
Description: PGP signature

Reply via email to