If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

{list} Reading <OL type=A> reports "upper-alpha", not "A"

VERIFIED FIXED in M15

Status

()

Core
DOM
P3
normal
VERIFIED FIXED
19 years ago
17 years ago

People

(Reporter: Jan Carpenter, Assigned: buster)

Tracking

Trunk
x86
Windows 98
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

19 years ago
Build 3/25/99

- Use the HTML below (modified to fit this text area)
- Notice that the type for circle is "circle" but that the type for upper-alpha
is "A".  I believe it should be "upper-alpha" as it is when used with
<OL type=A>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD><TITLE>test</TITLE>
<SCRIPT TYPE="text/javascript" SRC="../testlib.js"></SCRIPT>
</HEAD>
<BODY>
<OL>
  <LI type=A>first list item
</OL>
<UL>
  <LI type=circle>first list item
</UL>
<SCRIPT TYPE="text/javascript">
var oList=document.firstChild.childNodes.item(1);
var oList1=oList.childNodes.item(1).childNodes.item(1);
document.writeln(oList1.type);

var oList2=document.firstChild.childNodes.item(1);
var oList3=oList2.childNodes.item(3).childNodes.item(1);
document.writeln(oList3.type);
</SCRIPT>
</BODY>
</HTML>
(Reporter)

Updated

19 years ago
QA Contact: 4015 → 3847
(Reporter)

Comment 1

19 years ago
oops.  use this ammended HTML code.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD><TITLE>test</TITLE>
</HEAD>
<BODY>
<OL>
  <LI type=A>first list item
</OL>
<UL>
  <LI type=circle>first list item
</UL>
<SCRIPT TYPE="text/javascript">
var oList=document.firstChild.childNodes.item(1);
var oList1=oList.childNodes.item(1).childNodes.item(1);
document.writeln(oList1.type);

var oList2=document.firstChild.childNodes.item(1);
var oList3=oList2.childNodes.item(3).childNodes.item(1);
document.writeln(oList3.type);
</SCRIPT>
</BODY>
</HTML>

Updated

19 years ago
Assignee: beppe → kipp

Updated

19 years ago
Status: NEW → ASSIGNED
Target Milestone: M6
(Reporter)

Comment 2

19 years ago
this goes for upper-alpha, lower-alpha, upper-roman, lower-roman, & arabic
numbers which should be "decimal"

Updated

19 years ago
Status: ASSIGNED → RESOLVED
Last Resolved: 19 years ago
Resolution: --- → INVALID

Comment 3

19 years ago
Since the content attribute has "A" thats what the DOM should return (after
discussing the issue with vidur). If you disagree, take it up with him.
(Reporter)

Updated

19 years ago
Status: RESOLVED → REOPENED
(Reporter)

Updated

19 years ago
Resolution: INVALID → ---
(Reporter)

Comment 4

19 years ago
Since this:
<OL type=A>
  <LI>first list item
  <LI>second list item
  <LI>third list item
  <LI>fourth list item
</OL>

returns "upper-alpha", I assume that this:

<OL>
  <LI type=A>first list item
</OL>

should too for consistencies sake.
(Reporter)

Comment 5

19 years ago
reassigning to vidur for comment.
(Reporter)

Updated

19 years ago
Assignee: kipp → vidur
Status: REOPENED → NEW

Updated

19 years ago
Status: NEW → ASSIGNED
Target Milestone: M6 → M8

Comment 6

19 years ago
Yeah, we should have consistency. I think preserving the original attribute
value is the right thing to do.
(Reporter)

Updated

19 years ago
Assignee: vidur → kipp
Status: ASSIGNED → NEW
(Reporter)

Comment 7

19 years ago
assigning back to kipp.
Summary: Reading <LI type=A> reports "A" as the type instead of "upper-alpha" → Reading <OL type=A> reports "upper-alpha" as the type instead of "A"
Target Milestone: M8 → M15
[Kipp is on sabbatical. Marking M15. Fixing summary.]
Summary: Reading <OL type=A> reports "upper-alpha" as the type instead of "A" → {list} Reading <OL type=A> reports "upper-alpha", not "A"

Comment 9

19 years ago
Created attachment 669 [details]
better test case

Updated

19 years ago
Status: NEW → ASSIGNED

Updated

19 years ago
Status: ASSIGNED → RESOLVED
Last Resolved: 19 years ago19 years ago
Resolution: --- → FIXED

Comment 10

19 years ago
Fixed. We need preserve the original attribute type and can therefore map it
back to text properly for javascript or for writing out the content.
(Reporter)

Updated

19 years ago
Status: RESOLVED → VERIFIED
(Reporter)

Comment 11

19 years ago
Verified!
Build 1999-07-01-08-M8
You need to log in before you can comment on or make changes to this bug.