You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 28, 2019. It is now read-only.
According to the research done by Thomas Park, one of the most common error types experienced by learners of HTML is that they put an element inside of another that shouldn't be there.
Consider the case below...
<p>
<h1>lol</h1>
</p>
Based on the recent work we've been doing. This might throw an error because the initial <p> becomes auto-closed as soon as the <h1> happens, and so we would flag the fact that there was an orphan </p> at the bottom.
What we should really report is that the <h1> isn't allowed inside of a <p> and highlight that as the thing to fix.
Question, besides block elements not being allowed into inline elements, are there any other restrictions? I guess a paragraph is a block level, but only accepts inline elements? We should find a list of these rules and figure out how to codify them.
cc @Pomax - does this seem right to you based on what we discussed earlier?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
According to the research done by Thomas Park, one of the most common error types experienced by learners of HTML is that they put an element inside of another that shouldn't be there.
Consider the case below...
Based on the recent work we've been doing. This might throw an error because the initial
<p>
becomes auto-closed as soon as the<h1>
happens, and so we would flag the fact that there was an orphan</p>
at the bottom.What we should really report is that the
<h1>
isn't allowed inside of a<p>
and highlight that as the thing to fix.Question, besides
block
elements not being allowed intoinline
elements, are there any other restrictions? I guess a paragraph is ablock
level, but only acceptsinline
elements? We should find a list of these rules and figure out how to codify them.cc @Pomax - does this seem right to you based on what we discussed earlier?
The text was updated successfully, but these errors were encountered: