Closed
Bug 276009
Opened 20 years ago
Closed 20 years ago
<q></q> Doesn't Respect xml:lang on Mozilla (Also Firefox)
Categories
(SeaMonkey :: General, defect)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: imacat, Unassigned)
Details
The quotation tags <q></q> behavior on Mozilla and Firefox doesn't respect the
XHTML 1.1 xml:lang attribute. Given:
<?xml version="1.0" encoding="Big5" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-tw">
<head>
<title>Testing Page</title>
<style type="text/css">
q:lang(zh-tw) { quotes: "[" "]"; }
q:lang(en) { quotes: '<' '>'; }
</style>
</head>
<body>
<!-- Chinese text -->
<p>Some Chinese said: <q>It's fine.</q></p>
<!-- English text -->
<p xml:lang="en">Some European said: <q>It's fine.</q></p>
</body>
</html>
It gets:
Some Chinese said: [It's fine.]
Some European said: <It's fine.>
But given:
<?xml version="1.0" encoding="Big5" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-tw">
<head>
<title>Testing Page</title>
<style type="text/css">
q:lang(zh-tw) { quotes: "[" "]"; }
q:lang(en) { quotes: '<' '>'; }
</style>
</head>
<body>
<!-- Chinese text -->
<p>Some Chinese said: <q>It's fine.</q></p>
<!-- English text -->
<p xml:lang="en">Some European said: <q>It's fine.</q></p>
</body>
</html>
It gets:
Some Chinese said: "It's fine."
Some European said: "It's fine."
I prefer writing valid XHTML 1.1. XHTML 1.1 has no "lang" attribute. It would
be great if it can respect the xml:lang here.Summary: Quotations <q></q> on Mozilla (Also Firefox) Doesn't Respect XHTML 1.1 xml:lang → <q></q> Doesn't Respect xml:lang on Mozilla (Also Firefox)
Comment 1•20 years ago
|
||
You're most likely not serving the page as application/xhtml+xml, as is supposed to be for XHTML 1.1. And if not, then the page is not parsed as XML. It is parsed as HTML, which means an xml: attribute will be disregarded.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
After a couple of days testing, I guess you are right. Sorry for this and thank you. ^_*'
You need to log in
before you can comment on or make changes to this bug.
Description
•