Avoid jQuery.parseHTML

Change-Id: Iaf5cbe27b8883d6e4c468a3b4dae11438d264894
This commit is contained in:
Ed Sanders 2018-03-16 15:43:03 +00:00
parent a1dffa2dd7
commit b80075a5e4

View file

@ -46,13 +46,12 @@
$( 'html' ).addClass( 've-activated ve-loading' ); $( 'html' ).addClass( 've-activated ve-loading' );
if ( !init.$loading ) { if ( !init.$loading ) {
init.$loading = $( init.$loading = $( '<div>' ).addClass( 've-init-mw-desktopArticleTarget-loading-overlay' ).append(
'<div class="ve-init-mw-desktopArticleTarget-loading-overlay">' + // Can't use OO.ui.ProgressBarWidget yet
'<div class="ve-init-mw-desktopArticleTarget-progress">' + $( '<div>' ).addClass( 've-init-mw-desktopArticleTarget-progress' ).append(
// Stylesheets might not have processed yet, so manually set starting width to 0 // Stylesheets might not have processed yet, so manually set starting width to 0
'<div class="ve-init-mw-desktopArticleTarget-progress-bar" style="width: 0;"></div>' + $( '<div>' ).addClass( 've-init-mw-desktopArticleTarget-progress-bar' ).css( 'width', 0 )
'</div>' + )
'</div>'
); );
} }
// eslint-disable-next-line no-use-before-define // eslint-disable-next-line no-use-before-define