Prevent spellchecking from textarea fields

The spellchecking causes test flakiness.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=231984097
This commit is contained in:
guyben 2019-02-01 09:29:16 -08:00 committed by Ben McIlwain
parent 8085468280
commit c5ad30f49d
4 changed files with 13 additions and 6 deletions

View file

@ -128,7 +128,10 @@
<tr> <tr>
<td>Mark Data <td>Mark Data
<td> <td>
<textarea class="{css('reg-domain-mark')}" {if $readonly}readonly{/if}> <textarea
class="{css('reg-domain-mark')}"
spellcheck="false"
{if $readonly}readonly{/if}>
{$item['mark:mark']['keyValue']}</textarea> {$item['mark:mark']['keyValue']}</textarea>
</td> </td>
</tr> </tr>

View file

@ -74,7 +74,7 @@
<span class="{css('description')}">Copy and paste this into an email to the registrars</span> <span class="{css('description')}">Copy and paste this into an email to the registrars</span>
</td> </td>
<td class="{css('setting')}"> <td class="{css('setting')}">
<textarea rows="7" cols="100" readonly> <textarea rows="7" cols="100" spellcheck="false" readonly>
{for $clientId in mapKeys($clientIdToTld)} {for $clientId in mapKeys($clientIdToTld)}
Login: {$clientId}{sp}{sp}{sp}{sp}{sp}{sp} Login: {$clientId}{sp}{sp}{sp}{sp}{sp}{sp}
Password: {$password}{sp}{sp}{sp}{sp}{sp}{sp} Password: {$password}{sp}{sp}{sp}{sp}{sp}{sp}

View file

@ -113,7 +113,7 @@
<span class="{css('description')}">Copy and paste this into an email to the registrars</span> <span class="{css('description')}">Copy and paste this into an email to the registrars</span>
</td> </td>
<td class="{css('setting')}"> <td class="{css('setting')}">
<textarea rows="5" cols="30" readonly> <textarea rows="5" cols="30" spellcheck="false" readonly>
Login: {$clientId}{\n} Login: {$clientId}{\n}
Password: {$password}{\n} Password: {$password}{\n}
Phone passcode: {$passcode}{\n} Phone passcode: {$passcode}{\n}
@ -199,6 +199,7 @@
"Example:{\n} "Example:{\n}
USD=billing-id-for-usd{\n} USD=billing-id-for-usd{\n}
JPY=billing-id-for-yen{\n}" JPY=billing-id-for-yen{\n}"
spellcheck="false"
required>{$billingAccount ?: ''}</textarea> required>{$billingAccount ?: ''}</textarea>
</td> </td>
</tr> </tr>

View file

@ -87,6 +87,7 @@
name="clientCertificate" name="clientCertificate"
rows="16" rows="16"
cols="68" cols="68"
spellcheck="false"
{if $readonly}readonly{/if}>{$clientCertificate}</textarea> {if $readonly}readonly{/if}>{$clientCertificate}</textarea>
{elseif isNonnull($clientCertificateHash)} {elseif isNonnull($clientCertificateHash)}
{if $readonly} {if $readonly}
@ -100,7 +101,7 @@
<span class="{css('description')}">Existing certificate SHA256 base64 hash:</span> <span class="{css('description')}">Existing certificate SHA256 base64 hash:</span>
{$clientCertificateHash} {$clientCertificateHash}
{else} {else}
<textarea name="clientCertificate" rows="16" cols="68"></textarea> <textarea name="clientCertificate" rows="16" cols="68" spellcheck="false"></textarea>
{/if} {/if}
{else} {else}
{if $readonly} {if $readonly}
@ -109,10 +110,11 @@
<p>No certificate on file. Please enter your certificate below. <p>No certificate on file. Please enter your certificate below.
<textarea id="clientCertificate" <textarea id="clientCertificate"
name="clientCertificate" name="clientCertificate"
rows="16" cols="68"></textarea> rows="16" cols="68"
spellcheck="false"></textarea>
<div class="{css('description')}"> <div class="{css('description')}">
Example format: Example format:
<textarea id="exampleCert" rows="17" cols="68" readonly> <textarea id="exampleCert" rows="17" cols="68" spellcheck="false" readonly>
-----BEGIN CERTIFICATE-----{\n} -----BEGIN CERTIFICATE-----{\n}
MIIDvTCCAqWgAwIBAgIJAK/PgPT0jTwRMA0GCSqGSIb3DQEBCwUAMHUxCzAJBgNV{\n} MIIDvTCCAqWgAwIBAgIJAK/PgPT0jTwRMA0GCSqGSIb3DQEBCwUAMHUxCzAJBgNV{\n}
BAYTAlVTMREwDwYDVQQIDAhOZXcgWW9yazERMA8GA1UEBwwITmV3IFlvcmsxDzAN{\n} BAYTAlVTMREwDwYDVQQIDAhOZXcgWW9yazERMA8GA1UEBwwITmV3IFlvcmsxDzAN{\n}
@ -158,6 +160,7 @@
name="failoverClientCertificate" name="failoverClientCertificate"
rows="16" rows="16"
cols="68" cols="68"
spellcheck="false"
{if $readonly}readonly{/if}> {if $readonly}readonly{/if}>
{$failoverClientCertificate ?: ''} {$failoverClientCertificate ?: ''}
</textarea> </textarea>