The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

infos@wais-fr.com (29) [Avatar] Offline
#1
I think a note should be added about self-closing or not self-closing HTML element like <script> and <div>.

It seems to me that <script> element must not be self-closed.

But it also seems to me that <div> element must not be self-closed (in this case the fragment on page 26 is incorrect :
<body>
<div id="camerastork-widget"/>

Hello, world


<script >
src="http://camerastork.com/widget.js?product=1234"></script>
</body>smilie

best regards
Henri d'Orgeval
benvinegar (68) [Avatar] Offline
#2
Re: 2.2.1 Blocking script include
Good idea. I wasn't sure if that was self-explanatory or not, but I suppose I make the mistake of using self-closing script tags now and then (don't tell anybody).