|
|
@@ -148,10 +148,10 @@ describe( 'InlineEditorUI', () => {
|
|
|
} );
|
|
|
} );
|
|
|
|
|
|
- it( 'sets placeholder from the "data-placeholder" attribute of a passed element', () => {
|
|
|
- const element = document.createElement( 'div' );
|
|
|
+ it( 'sets placeholder from the "placeholder" attribute of a passed <textarea>', () => {
|
|
|
+ const element = document.createElement( 'textarea' );
|
|
|
|
|
|
- element.dataset.placeholder = 'placeholder-text';
|
|
|
+ element.setAttribute( 'placeholder', 'placeholder-text' );
|
|
|
|
|
|
return VirtualInlineTestEditor
|
|
|
.create( element, {
|
|
|
@@ -166,10 +166,10 @@ describe( 'InlineEditorUI', () => {
|
|
|
} );
|
|
|
} );
|
|
|
|
|
|
- it( 'uses editor.config.placeholder rather than the "data-placeholder" attribute of a passed element', () => {
|
|
|
- const element = document.createElement( 'div' );
|
|
|
+ it( 'uses editor.config.placeholder rather than the "placeholder" attribute of a passed <textarea>', () => {
|
|
|
+ const element = document.createElement( 'textarea' );
|
|
|
|
|
|
- element.dataset.placeholder = 'placeholder-text';
|
|
|
+ element.setAttribute( 'placeholder', 'placeholder-text' );
|
|
|
|
|
|
return VirtualInlineTestEditor
|
|
|
.create( element, {
|