🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.javascript
Article #51245

Re: Firefox 17 CDATA

#51245
From: rePeter
Date: Mon, 26 Nov 2012 14:45
39 lines
2364 bytes
Mon, 26 Nov 2012 15:23:10 +0100      
rePeter <no@spam.no>   napisał(a):

> Witam,
> po uaktualnieniu Firefoxa do 17, JS wyrzuca syntax error na widok ![CDATA[
> 
> Kod źródłowy:
> 	koperty = <r><![CDATA[
> 		<html>
> 		<head>
> 			<meta http-equiv="Content-Type"
> content="text/html; charset=ISO-8859-2"> <link href="koperta.css"
> rel="stylesheet" type="text/css"> <script  src="jquery-1.4.3.min.js"
> language="javascript" type="text/javascript"></script> <script
> src="koperta.js" language="javascript" type="text/javascript"></script>
> <title>Wydruk koperty</title> </head>
> 		<body  onload="jasliKopertaDuza(); self.print();
> self.close();" > <div id="koperty">
> 		]]></r>;
> 
> Do F16 nie było problemu. 
> Google jakoś dziś nie pomagają, ktoś zna rozwiązanie? 
> 


A jednak google pomogły, "E4X is deprecated and will be removed"
Ale może ktoś pomoże ładnie to czymś zastąpić?

Strona zawierająca ten skrypt jest pasywna, tzn. działa lokalnie (bez
serwera HTTP), wywoływana jest ze skryptu powłoki po uprzednim
pobraniu danych z relacyjnej bazy i umieszczeniu je w innym skrypcie JS.
Więc PHP,Ajax itp. odpadają. Oczywiście od biedy zrobię to topornie,
przypisując kolejne linie po kolei, ale co z większymi fragmentami...

-- 
Piotr Grzegorzyca pozdrawia
http://komputerowe.zakamarki.net

jedenaste: Nie spamuj
Technical Details
Message-ID: <20121126154510.588942ad@pe.zakamarki.net>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!news.cyf-kr.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!feeder3.cambriumusenet.nl!feed.tweaknews.nl!209.197.12.242.MISMATCH!nx01.iad01.newshosting.com!newshosting.com!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-a-02.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
References: <20121126152310.02540fa4@pe.zakamarki.net>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!news.cyf-kr.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!feeder3.cambriumusenet.nl!feed.tweaknews.nl!209.197.12.242.MISMATCH!nx01.iad01.newshosting.com!newshosting.com!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-a-02.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
Date: Mon, 26 Nov 2012 15:45:10 +0100
From: rePeter <no@spam.no>
Newsgroups: pl.comp.lang.javascript
Subject: Re: Firefox 17 CDATA
Message-ID: <20121126154510.588942ad@pe.zakamarki.net>
References: <20121126152310.02540fa4@pe.zakamarki.net>
X-Newsreader: Claws Mail 3.8.1 (GTK+ 2.24.13; x86_64-redhat-linux-gnu)
Mime-Version: 1.0
Lines: 41
Organization: Telekomunikacja Polska
NNTP-Posting-Host: 83.12.201.130
X-Trace: 1353941107 unt-rea-a-01.news.neostrada.pl 26696 83.12.201.130:39030
X-Complaints-To: abuse@news.neostrada.pl
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit