Closed Bug 301675 Opened 19 years ago Closed 19 years ago

default value of size DOM attribute of HTMLSelectElement must be 0 when the HTML attribute is not there

Categories

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

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: annevk, Assigned: annevk)

References

()

Details

Attachments

(1 file)

See: <http://whatwg.org/specs/web-forms/current-work/#size>

That is consistent with what both Opera and IE have implemented.
See
http://lxr.mozilla.org/seamonkey/source/content/html/content/src/nsHTMLSelectElement.cpp#1542
(and the very  next line shows what you'd want to do for a default value of 0).
Attached patch patch #1Splinter Review
Something like this? Thanks for the point btw.
Assignee: general → bug
Status: NEW → ASSIGNED
Attachment #190241 - Flags: superreview?(bzbarsky)
Attachment #190241 - Flags: review?(bzbarsky)
Comment on attachment 190241 [details] [diff] [review]
patch #1

Indeed.  Want to get 1.8 approval and such too?  If so, let me know if/when you
need checkin.
Attachment #190241 - Flags: superreview?(bzbarsky)
Attachment #190241 - Flags: superreview+
Attachment #190241 - Flags: review?(bzbarsky)
Attachment #190241 - Flags: review+
Comment on attachment 190241 [details] [diff] [review]
patch #1

Trivial patch that make us a more conforming browser and more consistent with
both Opera and IE.
Attachment #190241 - Flags: approval1.8b4?
Attachment #190241 - Flags: approval1.8b4? → approval1.8b4+
Checking in nsHTMLSelectElement.cpp;
/cvsroot/mozilla/content/html/content/src/nsHTMLSelectElement.cpp,v  <-- 
nsHTMLSelectElement.cpp
new revision: 1.230; previous revision: 1.229
done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
This broke the tree since the patch didn't remove the old macro.  Timeless fixed it.
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.

Attachment

General

Creator:
Created:
Updated:
Size: