Closed Bug 302499 Opened 19 years ago Closed 19 years ago

change context for at attribute on insert

Categories

(Core Graveyard :: XForms, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: allan, Assigned: aaronr)

References

()

Details

Attachments

(2 files, 1 obsolete file)

Per errata E27, we need to evaluate the at attribute with the context node and
size of the node set binding.
Attached file Testcase
Attached patch Patch (obsolete) — Splinter Review
Attachment #191211 - Flags: review?(aaronr)
Attachment #191211 - Flags: review?(aaronr) → review+
Attachment #191211 - Flags: review?(smaug)
Comment on attachment 191211 [details] [diff] [review]
Patch


>+
>+  if (isnan(atDoub))
>+    return NS_OK;

Why this?

Insert Element:
"If the result is NaN, the insert appends to the end of the node-set."
(In reply to comment #3)
> (From update of attachment 191211 [details] [diff] [review] [edit])
> 
> >+
> >+  if (isnan(atDoub))
> >+    return NS_OK;
> 
> Why this?
> 
> Insert Element:
> "If the result is NaN, the insert appends to the end of the node-set."

Lesson to myself: Do not make code while having a hangover.
Here's a patch without isnan() which was used in the wrong way per the spec.
and which is not portable. I'll create another bug for that, ok?
Attachment #191211 - Attachment is obsolete: true
Attachment #191211 - Flags: review?(smaug)
Comment on attachment 191330 [details] [diff] [review]
Patch without isnan()

I think this is ok for now.
Attachment #191330 - Flags: review+
Attachment #191330 - Flags: review+
checked in.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
(In reply to comment #5)
> Created an attachment (id=191330) [edit]
> Patch without isnan()
> 
> Here's a patch without isnan() which was used in the wrong way per the spec.
> and which is not portable. I'll create another bug for that, ok?

Created bug 303198 for that.
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: