oulan / iui

Automatically exported from code.google.com/p/iui
MIT License
0 stars 0 forks source link

page id get messed up in form panel when <input name="id" value="...." /> exists #240

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Problem is similar to http://code.google.com/p/iui/issues/detail?id=42

What steps will reproduce the problem?
1. Create a panel with a form tag and specify a unique id attribute
2. Create an input field with name="id" value="xyz" in the form
3. Open the panel

What is the expected output? What do you see instead?

Instead of the id from the <form> tag the element type of the <input..>
field is taken as id (= [htmlInputField] or so).

What version of the product are you using? On what operating system?
0.40dev Test 2

Please provide any additional information below.

iui.insertPages and updatePage use child.id or page.id (set & get).
Combined with a form, this results in access of the child input element
with the given name="id", instead of the nodes attribute.

Fixed the id Access by using getAttribute() and setAttribute() rather then
direct access.

Patch is attached

Original issue reported on code.google.com by JMan...@gmail.com on 22 Apr 2010 at 10:28

Attachments: