Projet

Général

Profil

Révision db2d93dd

Ajouté par Benjamin Luce il y a presque 9 ans

Update to 7.37

Voir les différences:

drupal7/modules/simpletest/drupal_web_test_case.php
2257 2257
            if ($wrapperNode) {
2258 2258
              // ajax.js adds an enclosing DIV to work around a Safari bug.
2259 2259
              $newDom = new DOMDocument();
2260
              // DOM can load HTML soup. But, HTML soup can throw warnings,
2261
              // suppress them.
2260 2262
              $newDom->loadHTML('<div>' . $command['data'] . '</div>');
2261
              $newNode = $dom->importNode($newDom->documentElement->firstChild->firstChild, TRUE);
2263
              // Suppress warnings thrown when duplicate HTML IDs are
2264
              // encountered. This probably means we are replacing an element
2265
              // with the same ID.
2266
              $newNode = @$dom->importNode($newDom->documentElement->firstChild->firstChild, TRUE);
2262 2267
              $method = isset($command['method']) ? $command['method'] : $ajax_settings['method'];
2263 2268
              // The "method" is a jQuery DOM manipulation function. Emulate
2264 2269
              // each one using PHP's DOMNode API.

Formats disponibles : Unified diff