Closed Bug 4324 Opened 25 years ago Closed 25 years ago

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

Categories

(Core :: DOM: Core & HTML, defect, P3)

x86
Windows 98
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: jcarpenter0524, Assigned: buster)

Details

Attachments

(1 file)

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>
QA Contact: 4015 → 3847
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>
Assignee: beppe → kipp
Status: NEW → ASSIGNED
Target Milestone: M6
this goes for upper-alpha, lower-alpha, upper-roman, lower-roman, & arabic
numbers which should be "decimal"
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
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.
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
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.
reassigning to vidur for comment.
Assignee: kipp → vidur
Status: REOPENED → NEW
Status: NEW → ASSIGNED
Target Milestone: M6 → M8
Yeah, we should have consistency. I think preserving the original attribute
value is the right thing to do.
Assignee: vidur → kipp
Status: ASSIGNED → NEW
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"
Attached file better test case
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 25 years ago25 years ago
Resolution: --- → FIXED
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.
Status: RESOLVED → VERIFIED
Verified!
Build 1999-07-01-08-M8
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: