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
To Reproduce
This script reproduces the problem. Note that <option value="PA">Pennsylvania does not have a closing tag. This is allowed because:
An option element's end tag may be omitted if the option element is immediately followed by another option element, or if it is immediately followed by an optgroup element, or if there is no more content in the parent element.
Describe the bug
Certain HTML tags can be omitted. See here: https://www.w3.org/TR/2011/WD-html5-20110525/syntax.html#optional-tags.
To Reproduce
This script reproduces the problem. Note that
<option value="PA">Pennsylvania
does not have a closing tag. This is allowed because:This will produce the following output. Note that
<option>Philadelphia</option>
appears outside of the<select>
element.Expected behavior
Here's the output from JSDOM:
Screenshots
If applicable, add screenshots to help explain your problem.
Device:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: