Home » XML » XML_XUL » Bug #1366
an attribute with a ' in an element gets parsed into &
Details
| Submitted | 2004-05-07 16:12 UTC |
|---|---|
| From | asnagy at php dot net |
| Status | Bogus |
| Package | XML_XUL |
| PHP Version | 4.3.2 |
| OS | Linux |
| Roadmaps | (Not assigned) |
Comments
[2004-05-07 16:12 UTC] asnagy at php dot net
Description:
------------
I am trying to build a toolbar, but cannot get the "onCommand" attribute to work. I noticed from another XUL site the use of onCommand with the goUrl function
example:
<menuitem label="About XUL" oncommand="goUrl('http://www.phppatterns.com')" />
When I try to build this element with your XUL class, it converts the ' in the goUrl function to an & is their a way to do this with the current state of the xul class?
Reproduce code:
---------------
$menu->addItem(array('label' => 'View All', 'onCommand' => "goUrl('index.php')"));
Expected result:
----------------
<menuitem label="View All" onCommand="goUrl('index.php')" />
Actual result:
--------------
<menuitem label="View All" onCommand="goUrl('index.php')" />