Tcl Library Source Code

View Ticket
Login
Ticket UUID: 1733442
Title: elements of htmlparse param list cannot be accessed
Type: Bug Version: None
Submitter: al_chou Created on: 2007-06-08 13:09:39
Subsystem: htmlparse Assigned To: andreas_kupries
Priority: 5 Medium Severity:
Status: Open Last Modified: 2007-06-08 13:09:39
Resolution: None Closed By:
    Closed on:
Description:
Here's an example of a tag that has an attribute containing line breaks.

set html {<select onChange="

                                                                processFieldChanged(this);
                                                        " onFocus="gotFocus(this,'Y');" onBlur="gotFocus(this,'N');"></select>}
<select onChange="

                                                                processFieldChanged(this);
                                                        " onFocus="gotFocus(this,'Y');" onBlur="gotFocus(this,'N');"></select>


Printing the param list causes no issues:

(bin) 122 % htmlparse::parse $html
==> hmstart {} {} {}
==> select {} {onChange="

                                                                processFieldChanged(this);
                                                        " onFocus="gotFocus(this,'Y');" onBlur="gotFocus(this,'N');"} {}
==> select / {} {}
==> hmstart / {} {}


But trying to access elements of the param list, which is what the build_data command in the run below does, yields an error:

(bin) 124 % htmlparse::parse -cmd build_data $html
list element in quotes followed by "gotFocus(this,'Y');"" instead of space