Closed Bug 198677 Opened 22 years ago Closed 22 years ago

Attribute parser doesn't allow negative values

Categories

(Core :: DOM: HTML Parser, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: john, Assigned: john)

Details

Attachments

(1 file, 2 obsolete files)

Attribute parsing in nsHTMLValue::ParseIntValue isn't working right with negative values. This is causing stuff like http://bugzilla.mozilla.org/attachment.cgi?id=103432&action=view to have problems (those lists should start at -2 and -20).
Attached patch Patch (obsolete) — Splinter Review
A new fix is forthcoming tomorrow, that restores the old behavior better (my net access is going to be down until then).
Attached patch Patch v2 (obsolete) — Splinter Review
This patch keeps ParseIntValue for the few callers who don't need the special rounding and % / * behavior, and adds ParseSpecialIntValue for those callers, removing the default value for the last parameter in the process.
Attachment #118097 - Attachment is obsolete: true
Attachment #118471 - Flags: review?(smontagu)
Attached patch Patch v2 -u9Splinter Review
Same diff with more context
Attachment #118471 - Attachment is obsolete: true
Comment on attachment 118485 [details] [diff] [review] Patch v2 -u9 r=smontagu
Attachment #118485 - Flags: superreview?(jst)
Attachment #118485 - Flags: review+
Comment on attachment 118485 [details] [diff] [review] Patch v2 -u9 sr=jst
Attachment #118485 - Flags: superreview?(jst) → superreview+
Comment on attachment 118485 [details] [diff] [review] Patch v2 -u9 This only affects <ol>, but is a very silly regression.
Attachment #118485 - Flags: approval1.3?
Attachment #118471 - Flags: review?(smontagu)
Attachment #118485 - Flags: approval1.3?
Attachment #118485 - Flags: approval1.4a?
Comment on attachment 118485 [details] [diff] [review] Patch v2 -u9 a=asa (on behalf of drivers) for checkin to 1.4a
Attachment #118485 - Flags: approval1.4a? → approval1.4a+
Fix checked in.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: