Web Development Common Errors

Problem with iframe having empty src: In-experience users, as well as experience user, sometimes by mistake, create iframe without specifying the src attribute, intending to set it later. If you are in an HTTPS environment, IE will produce a warning. To avoid this, set the src attribute to "#" or "javascript:void(0);"

Problem with img having empty src: In-experience users, as well as experience user, sometimes by mistake, create img without specifying the src attribute, intending to set it later. When this happens, some browsers will fetch the page containing the image again, then stop (because it realize that it can't render HTML as image). This cause extra load on the server, and some race condition.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License