File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,11 @@ export class SeleniumWebDriverElement implements TestElement {
161
161
async setContenteditableValue ( value : string ) : Promise < void > {
162
162
const contenteditableAttr = await this . getAttribute ( 'contenteditable' ) ;
163
163
164
- if ( contenteditableAttr !== '' && contenteditableAttr !== 'true' ) {
164
+ if (
165
+ contenteditableAttr !== '' &&
166
+ contenteditableAttr !== 'true' &&
167
+ contenteditableAttr !== 'plaintext-only'
168
+ ) {
165
169
throw new Error ( 'setContenteditableValue can only be called on a `contenteditable` element.' ) ;
166
170
}
167
171
Original file line number Diff line number Diff line change @@ -193,7 +193,11 @@ export class UnitTestElement implements TestElement {
193
193
async setContenteditableValue ( value : string ) : Promise < void > {
194
194
const contenteditableAttr = await this . getAttribute ( 'contenteditable' ) ;
195
195
196
- if ( contenteditableAttr !== '' && contenteditableAttr !== 'true' ) {
196
+ if (
197
+ contenteditableAttr !== '' &&
198
+ contenteditableAttr !== 'true' &&
199
+ contenteditableAttr !== 'plaintext-only'
200
+ ) {
197
201
throw new Error ( 'setContenteditableValue can only be called on a `contenteditable` element.' ) ;
198
202
}
199
203
You can’t perform that action at this time.
0 commit comments