Fixed issue about tag capitalization (#34276)
This commit is contained in:
committed by
Kristofer Koishigawa
parent
82ed62bcc5
commit
29297f48c9
@ -15,6 +15,8 @@ You can create a paragraph element like this:
|
|||||||
## Instructions
|
## Instructions
|
||||||
<section id='instructions'>
|
<section id='instructions'>
|
||||||
Create a <code>p</code> element below your <code>h2</code> element, and give it the text "Hello Paragraph".
|
Create a <code>p</code> element below your <code>h2</code> element, and give it the text "Hello Paragraph".
|
||||||
|
Note:
|
||||||
|
As a convention, all HTML tags are written in lowercase, for example <code><p></p></code> and not <code><P></P></code>.
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
## Tests
|
## Tests
|
||||||
@ -23,7 +25,7 @@ Create a <code>p</code> element below your <code>h2</code> element, and give it
|
|||||||
```yml
|
```yml
|
||||||
tests:
|
tests:
|
||||||
- text: Create a <code>p</code> element.
|
- text: Create a <code>p</code> element.
|
||||||
testString: assert(($("p").length > 0), 'Create a <code>p</code> element.');
|
testString: assert(($("p").length > 0), 'Create a valid <code>p</code> element.');
|
||||||
- text: Your <code>p</code> element should have the text "Hello Paragraph".
|
- text: Your <code>p</code> element should have the text "Hello Paragraph".
|
||||||
testString: assert.isTrue((/hello(\s)+paragraph/gi).test($("p").text()), 'Your <code>p</code> element should have the text "Hello Paragraph".');
|
testString: assert.isTrue((/hello(\s)+paragraph/gi).test($("p").text()), 'Your <code>p</code> element should have the text "Hello Paragraph".');
|
||||||
- text: Make sure your <code>p</code> element has a closing tag.
|
- text: Make sure your <code>p</code> element has a closing tag.
|
||||||
|
Reference in New Issue
Block a user