Closed
Bug 23648
Opened 26 years ago
Closed 26 years ago
Text Direction and Language attributes seem to be ignored
Categories
(Core :: Internationalization, defect, P3)
Tracking
()
VERIFIED
INVALID
People
(Reporter: Scott.Springer, Assigned: ftang)
Details
I wrote the following piece of HTML code to test the International features of
HTML 4.0. I assumed that the code written as DIR="RTL" would render somewhat
differently than the code specified as "LTR", however it didn't. I'm not sure
whether or not this is correct, but I thought it might be something you might
want to look into.
Code to follow
----------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>HTML Multinational Test</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#800080"
ALINK="#FF0000">
<DIV ALIGN="left" LANG="en" DIR="LTR">This is text and <Q LANG="fr"
DIR="RTL">This is quoted text!</Q>.</DIV>
</BODY>
</HTML>
| Assignee | ||
Updated•26 years ago
|
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → INVALID
| Assignee | ||
Comment 1•26 years ago
|
||
8.2 Specifying the direction of text and tables: the dir attribute
Attribute definitions
dir = LTR | RTL [CI]
This attribute specifies the base direction of directionally
neutral text (i.e., text that doesn't have inherent directionality as defined in
[UNICODE]) in an element's content and attribute values. It also
specifies the directionality of tables. Possible values:
LTR: Left-to-right text or table.
RTL: Right-to-left text or table.
Notice it state the DIR is used to specifies "the base direction" of
"directionally neutral text"
None of the text in the testing page is "directionally neutral text". All of
them are STRONG left to right text according to Unicode database. Therefore.
there are nothing wrong to render them the same way.
Also, for <Q>, there are no specification how to display them for each language.
It only stated in (http://www.w3.org/TR/html4/struct/text.html#h-9.2.2). Which
leave it open for the user agent to decide how to render the quotation for each
language.
User agents should render quotation marks in a language-sensitive
manner (see the lang attribute). Many languages adopt different quotation
styles for outer and inner (nested) quotations, which should be
respected by user-agents.
You need to log in
before you can comment on or make changes to this bug.
Description
•