J
Justin E. Miller
In XHTML 1.0 Strict, the correct declaration for calling an external
JavaScript is <script type="text/javascript" src="script2.13.js" />
right? Running the validator on my page, I got it being correct as
either the preceding or <script type="text/javascript"
src="script2.13.js"></script>. I would figure one would want to use the
former considering it uses less bytes of data, though largely irrelevant
on most connections.
I'm using Firefox 3.0 B3 and have noticed that the page is blank,
despite it passing validation by the W3 validator. The same page works
in Opera and Firefox 2.0.0.12 though. Not unsurprisingly, it doesn't
work in IE 6. I'm running Linux, so I can't run IE7 currently to test it
in there. It seems to be a bug with the programs not handling the
XHTML+XML declaration, so I submitted a bug report to Mozilla. I just
wanted to see if it was just my computer screwing things up.
I'm learning JavaScript through a book that is using XHTML 1.0
Transitional and these are just scripts from that book. I changed the
code to be Strict because I prefer to use it.
They are online at:
http://www.justinandlindseymiller.com/javascript_work/index.html
I don't need any feedback on it other than whether or not it works in
the browser you're using.
Thanks for your time.
JavaScript is <script type="text/javascript" src="script2.13.js" />
right? Running the validator on my page, I got it being correct as
either the preceding or <script type="text/javascript"
src="script2.13.js"></script>. I would figure one would want to use the
former considering it uses less bytes of data, though largely irrelevant
on most connections.
I'm using Firefox 3.0 B3 and have noticed that the page is blank,
despite it passing validation by the W3 validator. The same page works
in Opera and Firefox 2.0.0.12 though. Not unsurprisingly, it doesn't
work in IE 6. I'm running Linux, so I can't run IE7 currently to test it
in there. It seems to be a bug with the programs not handling the
XHTML+XML declaration, so I submitted a bug report to Mozilla. I just
wanted to see if it was just my computer screwing things up.
I'm learning JavaScript through a book that is using XHTML 1.0
Transitional and these are just scripts from that book. I changed the
code to be Strict because I prefer to use it.
They are online at:
http://www.justinandlindseymiller.com/javascript_work/index.html
I don't need any feedback on it other than whether or not it works in
the browser you're using.
Thanks for your time.