Re: [xml] HTML Parser: Choking on quoted HTML tags in javascript?
- From: "Morten W. J." <morten newtec dk>
- To: xml gnome org
- Subject: Re: [xml] HTML Parser: Choking on quoted HTML tags in javascript?
- Date: Tue, 26 Apr 2005 11:24:05 +0200
pop_win.document.write("<link rel=stylesheet type=text/css
href=default.css>");
This is definitely an error. You need to close your link-tag like this
<link rel=stylesheet type=text/css href=default.css />
Even better, you should consider to wrap your entire script like this:
<script type="text/javascript">
// <!CDATA>
function a() { ... }
function b() { ... }
function c() { ... }
// </CDATA>
</script>
I am sure the CDATA syntax is wrong so check up on that.
This allows a parser to ignore everything between the CDATA tags and allows
the script engine to ignore the CDATA tags as they are commented out.
--
Morten W. Jørgensen
Newtec A/S
StærmosegÂrdsvej 18
5230 Odense M
Denmark
Tlf.: 66 15 84 44
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]