Home » XML » XML_HTMLSax » Bug #1557
Unbale to parse badly formatted select statement
Details
| Submitted | 2004-06-04 16:50 UTC |
|---|---|
| From | sonny at sun dot com |
| Status | Bogus |
| Package | XML_HTMLSax |
| PHP Version | 4.3.2 |
| OS | Solaris 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