hint and help with invalid node bindings has wrong behaviour

RESOLVED WONTFIX

Status

RESOLVED WONTFIX
14 years ago
2 years ago

People

(Reporter: allan, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment)

1.61 KB, application/xhtml+xml
Details
(Reporter)

Description

14 years ago
Using invalid node bindings on either help or hint displays empty messages.
(Reporter)

Comment 1

14 years ago
Created attachment 185454 [details]
Testcase
(Reporter)

Comment 2

14 years ago
Empty messages does the same:
<xforms:trigger>
  <xforms:label>Test</xforms:label>
  <xforms:message level="ephemeral" ev:event="mouseover"/>
</xforms:trigger>

Comment 3

13 years ago
We also need to figure out how to handle the binding exception, right?  Shouldn't this also generate a binding exception?  Do we want it to be silent (just output to the console) or should we have the big popup?  I'd argue that if we go with the big popup, then we should try a test-bind during page load so that the error is caught early by the forms developer.
(Reporter)

Comment 4

13 years ago
(In reply to comment #3)
> We also need to figure out how to handle the binding exception, right? 
> Shouldn't this also generate a binding exception?

Hmm, I'm a bit out of touch with when we actually generate those exceptions, but I just looked in the spec. and it actually only mentions binding exception on wrong @model and @bind:
http://www.w3.org/TR/2005/PER-xforms-20051006/slice3.html#structure-attrs-single-node

> Do we want it to be silent (just output to the console) or should we have the
> big popup?  I'd argue that if we go with the big popup, then we should try a
> test-bind during page load so that the error is caught early by the forms
> developer.

I'd argue that we should do an "XForms Error message", and let a configuration value let it either do:
1) js console output
or
2) notification bar
or
3) popup

that is, bug 323025 :)
(Reporter)

Updated

13 years ago
Assignee: allan → xforms
RIP xforms
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → WONTFIX
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.