Closed
Bug 53181
Opened 24 years ago
Closed 24 years ago
document.write does not work for xhtml DTD
Categories
(Core :: XML, defect, P3)
Tracking
()
People
(Reporter: sposh, Assigned: nisheeth_mozilla)
Details
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0; DigExt)
BuildID: 2000080712
document.write[ln]() does not work for xhtml DTD. Similar bug has been reported
(43570), but I can't find this one specifically.
Reproducible: Always
Steps to Reproduce:
1. Open document
Actual Results: Blank page
Expected Results: Page should output "This doesn't appear in Netscape 6..."
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-
transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-uk" lang="en-uk">
<?xml version="1.0"?>
<head>
<title>document.write() example</title>
</head>
<body>
<script type="text/javascript" language="javascript">
<!--
document.write('This doesn\'t appear in Netscape 6...');
// -->
</script>
</body>
</html>
Comment 1•24 years ago
|
||
Browser, not engine. Changing component to XML in light of similar bug 43570.
Please forward as appropriate; thanks -
Assignee: rogerl → nisheeth
Component: Javascript Engine → XML
QA Contact: pschwartau → petersen
Comment 2•24 years ago
|
||
content disappear because mozilla renders XHTML 1.0 Transitional//EN like HTML
4.0 Strict//EN and this is a dup of bug 48351. a workaround would be, to but a
<p> tag around your script tag.
*** This bug has been marked as a duplicate of 48351 ***
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•