Skip to content

Instantly share code, notes, and snippets.

@ebruchez
Created December 17, 2011 01:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ebruchez/1488789 to your computer and use it in GitHub Desktop.
Save ebruchez/1488789 to your computer and use it in GitHub Desktop.
[ #316294 ] Event handling: ev:target doesn't work correctly across XBL boundaries
<xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:xforms="http://www.w3.org/2002/xforms"
xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:fr="http://orbeon.org/oxf/xml/form-runner"
xmlns:xbl="http://www.w3.org/ns/xbl"
xmlns:xxbl="http://orbeon.org/oxf/xml/xbl">
<xhtml:head>
<xforms:model id="model">
<xforms:instance id="instance">
<instance>Foo</instance>
</xforms:instance>
</xforms:model>
</xhtml:head>
<xhtml:body>
<xforms:message ev:target="my-input" ev:event="DOMActivate" value="'Foo'"/>
<fr:grid>
<xhtml:tr>
<xhtml:td>
<fr:grid>
<xhtml:tr>
<xhtml:td>
<xforms:input id="my-input" ref="."/>
</xhtml:td>
</xhtml:tr>
</fr:grid>
</xhtml:td>
</xhtml:tr>
</fr:grid>
</xhtml:body>
</xhtml:html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment