Skip to content

Commit 363c202

Browse files
author
Allan Jardine
committed
Fix: IE11 XML adds a testing namespace to the preserve attribute, resulting in invalid HTML
- https://datatables.net/forums/discussion/comment/133425#Comment_133425
1 parent 3708f4b commit 363c202

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

js/buttons.html5.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,9 @@ function _addToZip( zip, obj ) {
422422

423423
// Return namespace attributes to being as such
424424
str = str.replace( /_dt_b_namespace_token_/g, ':' );
425+
426+
// Remove testing name space that IE puts into the space preserve attr
427+
str = str.replace( /xmlns:NS[\d]+="" NS[\d]+:/g, '' );
425428
}
426429

427430
// Safari, IE and Edge will put empty name space attributes onto

0 commit comments

Comments
 (0)