I’ve started building the Technical documentation page by recreating a wikipedia article with my own formatting to meet the project story requirements. User story 4 seems to be reading the entire contents of a header rather than just innertext. Is this a bug or a problem with my code?
User Story #4: Each
section element with the class of
main-section should also have an id that corresponds with the text of each
header contained within it. Any spaces should be replaced with underscores (e.g. The
If the comment tags in the above codepen are deleted, the test will fail.
I was planning on creating a heading with the below indented subheading. It seems I’ll need to split the subheadings out into a separate div or something to pass the test?