PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

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;)" />