See #736066: ajax.js insert command sometimes wraps content in a div, potentially producing invalid HTML and other bugs, for the full write up. But basically ajax insert will wrap new content in a div, which is bad (it was a workaround for Safari 3 it sounds like).

anyway, i stole the fix from comment #106 of #736066: ajax.js insert command sometimes wraps content in a div, potentially producing invalid HTML and other bugs.

patch to come...

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

thejacer87 created an issue. See original summary.

thejacer87’s picture

Status: Needs review » Needs work

The last submitted patch, 2: ajax_js_insert_command-2771521-2.patch, failed testing.

thejacer87’s picture

dunno why it failed... maybe cuz i made the patch in my own project so the commits were off?

thejacer87’s picture

Status: Needs work » Needs review
stefan.r’s picture

Version: 7.x-dev » 8.1.x-dev

This probably needs to be fixed in 8.x first (see core/misc/ajax.js).

stefan.r’s picture

Version: 8.1.x-dev » 7.x-dev
Status: Needs review » Postponed

Seems that we already have an 8.x issue at #736066: ajax.js insert command sometimes wraps content in a div, potentially producing invalid HTML and other bugs.

In order for these kinds of fixes to go into 7.x, they need to go into 8.x first.

thejacer87’s picture

not sure i understand. i mentioned that exact issue in my original post... twice. why do we have to wait for 8?

poker10’s picture

Assigned: thejacer87 » Unassigned
Category: Task » Bug report
Status: Postponed » Needs work

The D8 issue is commited, so that fix can be backported here to D7. Patch will need some work to include all (possible) changes from D8 commit.