PEAR is archived and read-only

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

Home » XML » XML_HTMLSax » Bug #1557

Unbale to parse badly formatted select statement

Details

Submitted2004-06-04 16:50 UTC
Fromsonny at sun dot com
StatusBogus
PackageXML_HTMLSax
PHP Version4.3.2
OSSolaris 9
Roadmaps(Not assigned)

Comments

[2004-06-04 16:50 UTC] sonny at sun dot com

Description:
------------
A given select statement is not able to parse.
You'll get the name of the select but thats all.
I know this s a bit crapy and badly format html.
But propebly there is a solution.

Reproduce code:
---------------
Source Data:
<SELECT NAME="serial_value" onChange="updateSerialNumber(this)">
<OPTION>
<OPTION> Customer Remote From System
<OPTION SELECTED> Customer Unable To Provide
<OPTION> Not Required For Contract
</SELECT>

With following Code ( like in the Readme ):
http://dj.laxly.de/php/ral/RALparser.phps

you'll get by print_r($attrs)
Array
(
[name] => serial_value
[onchange] => updateSerialNumber(this)
)
Array
(
)
Array
(
)
Array
(
[selected] => 1
)
Array
(

Expected result:
----------------
Us the data after given <option> tag and before begining <option> tag or closed </select> tag.

[2004-06-04 17:51 UTC] sonny at sun dot com

sorry summary was still in the cache.
Just changing the summary