jquery - Do Javascript functionality break when html has some unclosed tags? -


i have existing asp.net web application there 10 years. far running in compatibility mode ie5. has converted ie11 edge compatible. suddenly, below typical javascript , j-query tag started fail:

document.getelementbyid('id of element'). , $('#id of element')

i checked div present on page , view source. while going through html generated in view source, noticed there numerous unclosed tags.

so question unclosed html tags affect working of javascript? other reasons failing above statement? how can fix this?

it's pretty standard ie throw hissy fit when don't close html tags , try access them javascript. there's decent article on here: http://snook.ca/archives/javascript/close_your_tags


Comments