fix(curriculum,i18n): issues in the source string (#45622)

* Added code formatting

* Removed dots from postscript since they break the emphasis tag
This commit is contained in:
Farhan Hasin Chowdhury
2022-04-06 03:23:16 +06:00
committed by GitHub
parent a6d2660c7c
commit 6af38bb240
2 changed files with 10 additions and 10 deletions

View File

@ -19,7 +19,7 @@ You should give the `textarea` a `rows` attribute with value `3`.
assert.equal(document.querySelector('fieldset:nth-child(3) > label:nth-child(4) > textarea')?.rows, 3); assert.equal(document.querySelector('fieldset:nth-child(3) > label:nth-child(4) > textarea')?.rows, 3);
``` ```
You should give the textarea a `cols` attribute with value `30`. You should give the `textarea` a `cols` attribute with value `30`.
```js ```js
assert.equal(document.querySelector('fieldset:nth-child(3) > label:nth-child(4) > textarea')?.cols, 30); assert.equal(document.querySelector('fieldset:nth-child(3) > label:nth-child(4) > textarea')?.cols, 30);

View File

@ -13,55 +13,55 @@ Go ahead, and give each submittable element a unique `name` attribute of your ch
# --hints-- # --hints--
You should give the `input` expecting a first name a `name` attribtute. _P.S. I would have chosen `first-name`_ You should give the `input` expecting a first name a `name` attribtute. _PS I would have chosen `first-name`_
```js ```js
assert.isNotEmpty(document.querySelector('fieldset:nth-child(1) > label:nth-child(1) > input')?.name); assert.isNotEmpty(document.querySelector('fieldset:nth-child(1) > label:nth-child(1) > input')?.name);
``` ```
You should give the `input` expecting a last name a `name` attribute. _P.S. I would have chosen `last-name`_ You should give the `input` expecting a last name a `name` attribute. _PS I would have chosen `last-name`_
```js ```js
assert.isNotEmpty(document.querySelector('fieldset:nth-child(1) > label:nth-child(2) > input')?.name); assert.isNotEmpty(document.querySelector('fieldset:nth-child(1) > label:nth-child(2) > input')?.name);
``` ```
You should give the `email` a `name` attribute. _P.S. I would have chosen `email`_ You should give the `email` a `name` attribute. _PS I would have chosen `email`_
```js ```js
assert.isNotEmpty(document.querySelector('input[type="email"]')?.name); assert.isNotEmpty(document.querySelector('input[type="email"]')?.name);
``` ```
You should give the `password` a `name` attribute. _P.S. I would have chosen `password`_ You should give the `password` a `name` attribute. _PS I would have chosen `password`_
```js ```js
assert.isNotEmpty(document.querySelector('input[type="password"]')?.name); assert.isNotEmpty(document.querySelector('input[type="password"]')?.name);
``` ```
You should give the `checkbox` a `name` attribute. _P.S. I would have chosen `terms`_ You should give the `checkbox` a `name` attribute. _PS I would have chosen `terms`_
```js ```js
assert.isNotEmpty(document.querySelector('input[type="checkbox"]')?.name); assert.isNotEmpty(document.querySelector('input[type="checkbox"]')?.name);
``` ```
You should give the `file` a `name` attribute. _P.S. I would have chosen `file`_ You should give the `file` a `name` attribute. _PS I would have chosen `file`_
```js ```js
assert.isNotEmpty(document.querySelector('input[type="file"]')?.name); assert.isNotEmpty(document.querySelector('input[type="file"]')?.name);
``` ```
You should give the `number` a `name` attribute. _P.S. I would have chosen `age`_ You should give the `number` a `name` attribute. _PS I would have chosen `age`_
```js ```js
assert.isNotEmpty(document.querySelector('input[type="number"]')?.name); assert.isNotEmpty(document.querySelector('input[type="number"]')?.name);
``` ```
You should give the `select` element a `name` attribute. _P.S. I would have chosen `referrer`_ You should give the `select` element a `name` attribute. _PS I would have chosen `referrer`_
```js ```js
assert.isNotEmpty(document.querySelector('select')?.name); assert.isNotEmpty(document.querySelector('select')?.name);
``` ```
You should give the `textarea` element a `name` attribute. _P.S. I would have chosen `bio`_ You should give the `textarea` element a `name` attribute. _PS I would have chosen `bio`_
```js ```js
assert.isNotEmpty(document.querySelector('textarea')?.name); assert.isNotEmpty(document.querySelector('textarea')?.name);