-
Notifications
You must be signed in to change notification settings - Fork 141
Open
Description
Describe the bug
Putting an <h1>
tag inside of a <p>
tag causes the following closing tags to turn red.
To Reproduce
Steps to reproduce the behavior:
- Go to popcode.org
- Add the following HTML:
<!DOCTYPE html>
<html>
<head>
<title>Funfunctionality</title>
</head>
<body>
<div class="webname">
<p>
<h1>Funfunctionality</h1>
</p>
</div>
</body>
</html>
- Notice color of closing tags
Expected behavior
Since Popcode is an opinionated editor, I'd recommend an error message like:
You can't put <h1> / <h2> etc header tags inside of a paragraph element. Put them before or after the <p> tag.
Notice that the page renders; Popcode does not detect any errors.
Desktop (please complete the following information):
- OS: MacOS
- Browser Firefox & Chrome
- Version Latest
Metadata
Metadata
Assignees
Labels
No labels