Closed
Bug 176668
Opened 23 years ago
Closed 8 years ago
[RFE] document.write, document.writeln not supported during transform
Categories
(Core :: XSLT, enhancement)
Core
XSLT
Tracking
()
RESOLVED
INVALID
People
(Reporter: markushuebner, Unassigned)
References
()
Details
Testing trunk build 2002102415 and going to
http://www.world-direct.com/gia/test/feedback.asp
doesn't display anything (works fine in other browsers).
When going to the URL the status bar says 'stopped' and
when clicking on the 'stop button' and taking a look
at the source code there is just the single line:
<link rel="stylesheet" type="text/css" href="wdstylens6.css">
This page works the way that an external JavaScript file (ext.js)
is doing a document.writeln(); depending on the used browser for
the CSS file to use.
There is no error in the JavaScript console.
This could be a regression of bug 130161.
Reporter | ||
Comment 1•23 years ago
|
||
Reassigning to Sicking as he dealt with that.
Assignee: peterv → bugmail
Reporter | ||
Updated•23 years ago
|
Keywords: regression
![]() |
||
Comment 2•23 years ago
|
||
What does this have to do with xslt?
This is broken in Oct 22 builds too, btw; do we have a regression date range?
That's the first order of business...
Comment 3•23 years ago
|
||
this is not a regression.
document.write is not supported as being called during transforms.
And it won't be as long as we don't feed the result thru the parser.
Reporter | ||
Comment 4•23 years ago
|
||
This bug is not about a feature, rather than about a hanging mozilla.
Mozilla already worked on that page before --> reopening.
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
Comment 5•23 years ago
|
||
works for me
Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.2b) Gecko/20021018
Reporter | ||
Comment 7•22 years ago
|
||
Using trunk build 2002111508 I still don't get anything displayed at
http://www.world-direct.com/gia/test/partner.asp
Keywords: regression
Comment 8•22 years ago
|
||
Can't see the testcase, please attach a simple testcase to the bug. Mozilla is
not hanging, it just doesn't display anything. If you're doing document.write
during the transform like Axel says then this bug has very low priority of
getting fixed, if ever.
Reporter | ||
Comment 9•22 years ago
|
||
The problem is that Mozilla doesn't show anything at all - Mozilla did show
the output before. Why has this regressed?
Updating URL with a simpler testcase.
Severity: normal → major
Status: REOPENED → NEW
Comment 10•22 years ago
|
||
Attach a simple testcase. This has not regressed, if it worked before it was by
pure chance. As I said, there's very little priority for getting this fixed.
Please don't reply unless you're giving us a reduced testcase.
Comment 11•22 years ago
|
||
changing topic to make it actually say what this bug is about.
As there is no intention to support document.write, making nobody own this.
Assignee: bugmail → nobody
Severity: major → enhancement
Keywords: regression
OS: Windows XP → All
Hardware: PC → All
Summary: Mozilla stops on external js-->css file → document.write, document.writeln not supported during transform
Comment 12•22 years ago
|
||
I wonder if we could shadow document.write and document.writeln with
function(){
alert("document.write[ln] not supported during XSLT transformations.");
}
Thus we wouldn't call document.open, which is causing the crash in 202765, AFAICT.
And it would be less cryptic for users of these.
I bet it's possible to do that, it might be trickier to unshadow the functions
after the transformation, though.
Comment 13•22 years ago
|
||
If we ever reconsider the decision to not support document.write, we should
reconsider support of output-escaping as well. Those are just the same things with
different hookups. See bug 98168.
Summary: document.write, document.writeln not supported during transform → [RFE] document.write, document.writeln not supported during transform
Comment 14•20 years ago
|
||
*** Bug 276224 has been marked as a duplicate of this bug. ***
Reporter | ||
Comment 15•20 years ago
|
||
Is there a reduced testcase still needed?
Comment 16•20 years ago
|
||
I can understand your point not to support document.write, but it works (of
course) in case of server-side processing. My goal was to lessen the load on the
server.
Incidentally it would use something like
if (document.body.clientWidth < 990)
document.write ("<" + "!--");
and while the body tag is not present (bug 276222) it doesnt make any use anyway.
Updated•16 years ago
|
QA Contact: keith → xslt
Updated•8 years ago
|
Status: NEW → RESOLVED
Closed: 23 years ago → 8 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•