Fixed issue about tag capitalization (#34276)

This commit is contained in:
The Coding Aviator
2018-12-04 19:46:30 +05:30
committed by Kristofer Koishigawa
parent 82ed62bcc5
commit 29297f48c9

View File

@ -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>&#60;p&#62;&#60;/p&#62;</code> and not <code>&#60;P&#62;&#60;/P&#62;</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.