Skip to content

HTML tags inside script tag are parsed #16

Open
wnayes opened this issue Jun 4, 2020 · 0 comments
Open

HTML tags inside script tag are parsed #16

wnayes opened this issue Jun 4, 2020 · 0 comments

Comments

@wnayes
Copy link

wnayes commented Jun 4, 2020

Certain HTML elements cannot have children (void elements), but will be parsed as if they could.

For example:

<script type="text/javascript">
function someFunction(e)
{
	/// <summary>Adds a handler to a browser event</summary>
	/// <param name="e">Event</param>
	alert(e);
}
</script>

The <summary> tags inside the script tag are parsed as OpenHtmlTag, even though they are really part of the JavaScript literal content.

This can be worked around as a consumer of the parser, but it requires additional bookkeeping.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant