udacity / frontend-grading-engine

Providing immediate feedback for front-end code
MIT License
132 stars 172 forks source link

Udacity Feedback: Tree to HTML Quiz Test Results #45

Open TiffanyPatterson opened 6 years ago

TiffanyPatterson commented 6 years ago

For such a simple quiz, I am unable to pass/understand this quiz's requirements. I've tried saving in different formats, recreating the files, and even using different IDEs. Am I missing something here?

My code:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Tree to HTML</title>
  <!-- the next line loads the tests for the Udacity Feedback extension -->
  <meta name="udacity-grader" content="http://udacity.github.io/fend/fend-refresh/lesson2/problem-set/tree-to-html/tests.json">
</head>
<body>
  <h1>This is my header</h1>
    <div
      <p>Here is my first paragraph.</p>
      <p>Here is my second paragraph.</p>
    </div>
</body>
</html>

The error reported: X Paragraphs have content

Criteria code:

"description": "Paragraphs have content",
      "definition": {
        "nodes": "p",
        "get": "innerHTML",
        "hasSubstring": ".+"
sriaman commented 6 years ago

New Text Document.txt

norakarla commented 6 years ago

MrsLinzan. Close the tag (<div )> and see if that works

dyslexicguy commented 6 years ago

"description": "Paragraphs have content", "definition": { "nodes": "p", "get": "innerHTML", "hasSubstring": ".+"