Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix uppercase html parsing #2296

Merged
merged 2 commits into from
Mar 1, 2016
Merged

Fix uppercase html parsing #2296

merged 2 commits into from
Mar 1, 2016

Conversation

ccummings
Copy link
Contributor

If a template uses uppercase HTML tags, can's parser fails to close nested tags properly.

JSBin: http://jsbin.com/zizotavesu/edit?html,css,js,output
This will work if the first </DIV> is changed to </div>.

The parsing for end tags does not use toLowerCase on the tagName, whereas the parsing for start tags does which causes a mismatch in opening/closing tags.

In the JSBin example, the first </DIV> doesn't match the open <div> on the stack and is left open resulting in the second div nesting inside of it.

@daffl daffl added the bug label Mar 1, 2016
@daffl daffl added this to the 2.3.18 milestone Mar 1, 2016
daffl added a commit that referenced this pull request Mar 1, 2016
@daffl daffl merged commit e02b913 into master Mar 1, 2016
@daffl daffl deleted the fix-uppercase-html-parsing branch March 1, 2016 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants