On my website, after loading a page, CSS height is adding to the DOM
and I am unable to find from where it was modified. Is there any way to debug it?
Below is the demo example.
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<style>
.div { border: 1px solid; }
</style>
</head>
<body>
<div class="div"> <b>hello</b> </div>
<script>
$(document).ready(function(){
$('.div').css("height", "200px");
$('body > div').css("height", "200px");
});
</script>
</body>
</html>
DOM can modify from any file and in any way. How can I debug it on a large website?
Thank you.