HTMLInputElement.type doesn't return the "type of control created"

RESOLVED FIXED

Status

()

Core
DOM: Core & HTML
RESOLVED FIXED
14 years ago
10 years ago

People

(Reporter: Hixie (not reading bugmail), Unassigned)

Tracking

({fixed-aviary1.0, fixed1.7.5})

Trunk
x86
Windows 2000
fixed-aviary1.0, fixed1.7.5
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment)

(Reporter)

Description

14 years ago
According to DOM2 HTML, HTMLInputElement.type should return "The type of control
created (all lower case)" but we are simply returning the value of the type
attribute in lowercase.

TESTCASE: http://www.hixie.ch/tests/adhoc/dom/html/forms/005.html

This makes detecting whether the UA is a Web Forms 2.0 compliant UA rather hard. 
Opera and WinIE do this correctly.
Created attachment 151711 [details] [diff] [review]
Always return the actual type

Updated

14 years ago
Attachment #151711 - Flags: superreview?(peterv)
Attachment #151711 - Flags: review?(peterv)
Attachment #151711 - Flags: superreview?(peterv)
Attachment #151711 - Flags: superreview+
Attachment #151711 - Flags: review?(peterv)
Attachment #151711 - Flags: review+
Fixed.
Status: NEW → RESOLVED
Last Resolved: 14 years ago
Resolution: --- → FIXED
Whiteboard: needed-aviary1.0?

Comment 3

14 years ago
Typo - "Shound't"
Thanks, fixed.

Updated

14 years ago
Keywords: fixed-aviary1.0

Updated

14 years ago
Whiteboard: needed-aviary1.0?

Updated

14 years ago
Keywords: fixed1.7.x

Updated

10 years ago
Component: DOM: HTML → DOM: Core & HTML
QA Contact: ian → general
You need to log in before you can comment on or make changes to this bug.