my question is quite easy. code as belows:
<div id="parent">
<script>
// will this line be an error ? cannot find the dom?
var dom = document.getElementById("parent");
</script>
</div>
I test it in all broswers I can find, even IE6, it works well! But I wonder if any browser will make an error? Because after putting the code onto the network, some data tell me that it may result in an error? but how ? could you help me?
@2017.09.13 it seems to be a misunderstand, the code is ok