ve.init.mw.Target: Drop <noscript> tags on serialisation

These aren't in the Parsoid HTML spec., so there's no valid way that they would
be in the original document from upstream, and we don't—at least intentionally—
allow users to insert them, so we can safely assume that they're resulting from
browser extensions and other items inserting content into anything that sort-of
looks like an HTML page.

Bug: T144891
Change-Id: I330ae05cd53eee5c18b18ad744ea0ec7b2eb09cc
This commit is contained in:
James D. Forrester 2016-09-08 14:13:11 -07:00
parent 7fe96fc238
commit feeb2c3906

View file

@ -215,6 +215,7 @@ ve.init.mw.Target.prototype.getHtml = function ( newDoc, oldDoc ) {
$( newDoc )
.find(
'script, ' + // T54884, T65229, T96533, T103430
'noscript, ' + // T144891
'object, ' + // T65229
'style, ' + // T55252
'embed, ' + // T53521, T54791, T65121