Closed
Bug 3597
Opened 26 years ago
Closed 26 years ago
DIR-LI type attribute: arabic, lower alpha and lower roman item markers not recognized
Categories
(Core :: Layout, defect, P3)
Tracking
()
VERIFIED
FIXED
People
(Reporter: rubydoo123, Assigned: buster)
References
()
Details
build: 3/10/99
platform: checked on win95, win98, winNT, mac & linux
expected results: when the LI type attribute is set to 'a' or 'i' the visual
representation should be lower alpha and lower roman
what I got: lower alpha renders as upper alpha and lower roman renders as upper
roman
here is the code:
<dir>
<li type="disc">directory list using the type attribute, item marker set to
disc</li>
<li type="circle">item marker set to circle</li>
<li type="square">item marker set to square</li>
<li type="1">item marker set to arabic</li>
<li type="a">item marker set to lower alpha</li>
<li type="A">item marker set to upper alpha</li>
<li type="i">item marker set to lower roman</li>
<li type="I">item marker set to upper roman</li>
</dir>
Updated•26 years ago
|
Assignee: ftang → kipp
Comment 2•26 years ago
|
||
No, it's not my fault. It is already the wront style when it hit the
nsBulletFrame code.
I trace down the bug and find the problem in
nsHTMLLIElement::StringToAttribute, that function call
nsGenericHTMLElement::ParseEnumValue(aValue, kListItemTypeTable,
aResult))
However, nsGenericHTMLElement::ParseEnumValue call aValue.EqualsIgnoreCase which
will ignore the case. Therefore, it will match 'a' with {"A",
NS_STYLE_LIST_STYLE_UPPER_ALPHA} and 'i' with {"I", NS_STYLE_LIST_UPPER_ROMAN}
Reassign this to kipp since kipp is the last one touch the
nsHTMLLIElement::StringToAttribute
Updated•26 years ago
|
QA Contact: 4144 → 1698
Comment 6•26 years ago
|
||
[QA Assigning to self for verification on tomorrow's build.]
Updated•26 years ago
|
Status: RESOLVED → REOPENED
Comment 7•26 years ago
|
||
Re-opening after checking 3.19.99 builds using Apprunner:
1. Lowercase alpha characters draw properly on Win32 and Mac OS, but appear as
uppercase alpha characters on Linux.
2. The arabic character (1) continues to appear as a circle. (This was mentioned
in the bug subject, but may not have been mentioned in the actual bug report.)
Thanks!
Okay, you caught me on that one. :-)
HTML4 (not navigator 4) defines a new type of "1" which means "decimal". Now
nglayout does that one too. Nice catch.
Updated•26 years ago
|
Status: RESOLVED → VERIFIED
Comment 9•26 years ago
|
||
Thanks. (beppe's catch, really.)
Anyway, verified fixed in 3.26.99 builds on Mac OS/Win32, and 3.24.99 build on
Linux (Apprunner.)
All attributes appear correctly cross-platform.
You need to log in
before you can comment on or make changes to this bug.
Description
•