PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » XML » XML_XUL » Bug #1366

an attribute with a ' in an element gets parsed into &

Details

Submitted2004-05-07 16:12 UTC
Fromasnagy at php dot net
StatusBogus
PackageXML_XUL
PHP Version4.3.2
OSLinux
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(&apos;index.php&apos;)" />