Closed
Bug 303849
Opened 19 years ago
Closed 19 years ago
The "relevant" attribute seems is not supported in XForms plugin at all
Categories
(Core Graveyard :: XForms, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 291119
People
(Reporter: ikorolev, Assigned: aaronr)
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b3) Gecko/20050712 Firefox/1.0+
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b3) Gecko/20050712 Firefox/1.0+
Here is the testcase from "XForms for HTML Authors" document , which located by
address http://www.w3.org/MarkUp/Forms/2003/xforms-for-html-authors.html
<?xml version="1.0"?>
<h:html xmlns:h="http://www.w3.org/1999/xhtml"
xmlns:xf="http://www.w3.org/2002/xforms"
xmlns:ev="http://www.w3.org/2001/xml-events">
<h:head>
<xf:model>
<xf:instance>
<data xmlns="">
<amount/>
<method/>
<cc/>
<expires/>
</data>
</xf:instance>
<xf:bind nodeset="cc" relevant="../method='credit'"/>
<xf:bind nodeset="expires" relevant="../method='credit'"/>
</xf:model>
</h:head>
<h:body>
<xf:select1 ref="method">
<xf:label>Method of payment:</xf:label>
<xf:item>
<xf:label>Cash</xf:label>
<xf:value>cash</xf:value>
</xf:item>
<xf:item>
<xf:label>Credit card</xf:label>
<xf:value>credit</xf:value>
</xf:item>
</xf:select1>
<xf:input ref="cc/number">
<xf:label>Card number:</xf:label>
</xf:input>
<xf:input ref="cc/expires">
<xf:label>Expiry date:</xf:label>
</xf:input>
</h:body>
</h:html>
So, XForms plugin always displays the <input> fields, in disrespect to the
"../method" element values.
Reproducible: Always
Steps to Reproduce:
1. Create the document with test case
2. Browse it in Deerpark
Actual Results:
The <input> elements are always displayed.
Expected Results:
They should be displayed, only when /data/method is equal to 'credit'.
Comment 1•19 years ago
|
||
Two problems:
* We have no default styling yet (bug 291119), so you need to include f.x.:
<h:style type="text/css">
@namespace xf url("http://www.w3.org/2002/xforms");
xf|*[disabled] {
display: none;
}
</h:style>
to get the effect you want
* Your inputs refer to non-existant nodes
*** This bug has been marked as a duplicate of 291119 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Summary: The "relevant" attribute seems is not supported in XForms plugin at all → The "relevant" attribute seems is not supported in XForms plugin at all
Updated•8 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•