Your Search Results

    Optimizing Your Pages for Speculative Parsing

    When this document talks about unbalanced elements, what does it mean, precisely? For example, in HTML "<p><div></div>" is a balanced construction, because the "</p>" element is implicit before the new block level element. This is valid HTML, and is parsed in to the DOM as "<p></p><div></div>" — so when this document talks about being balanced, does it mean before or after being parsed as HTML?

    <hr>

    I note this is a Draft.

    <hr>

    I find it odd that the same code fragment is given as both a good and a bad example.

    <script>document.write("<div></div>");</script> is OK.

    <script>document.write("<div></div");</script> is bad.

    Notice it is not the same! The is a > missing in the second example.

    Document Tags and Contributors

    Contributors to this page: nslater, John99, aceman-bugzilla
    Last updated by: nslater,