Closed Bug 831232 Opened 11 years ago Closed 11 years ago

Improve spec conformance for table@border

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla21

People

(Reporter: Ms2ger, Assigned: Ms2ger)

Details

Attachments

(1 file)

Attached patch Patch v1Splinter Review
ParseIntWithBounds will set Type() to eInteger even if the value is out of bounds. This breaks the default in MapAttributesIntoRule which does

      int32_t borderThickness = 1;

      if (borderValue->Type() == nsAttrValue::eInteger)
        borderThickness = borderValue->GetIntegerValue();

which causes us to fail the final three tests in the attached test.
Attachment #702774 - Flags: review?(bugs)
Comment on attachment 702774 [details] [diff] [review]
Patch v1

I think dbaron should review this change.
Attachment #702774 - Flags: review?(bugs) → review?(dbaron)
Comment on attachment 702774 [details] [diff] [review]
Patch v1

r=dbaron, though it would be good if you:
 renamed the test to table-border-1{,-ref}.html
 added a table-border-2{,-ref,-notref}.html that checks that border="0" does match lack of a border attribute and does not match one of the references from this test (but remember to include only one table)

Since it looks like this changes our behavior from matching Opera to matching IE, could you let somebody at Opera know that we're changing?
Attachment #702774 - Flags: review?(dbaron) → review+
https://hg.mozilla.org/mozilla-central/rev/454347e2ef1a
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: