Closed
Bug 15581
Opened 25 years ago
Closed 25 years ago
  dos not work in form widgets
Categories
(Core :: Layout: Form Controls, defect, P3)
Tracking
()
VERIFIED
FIXED
People
(Reporter: teruko, Assigned: rickg)
References
()
Details
In the form widgets, some fields does not handle   correctly. In the above URL input type=button input type=readonly input type=reset input type=submit input type=text do not handle   correctly. input type=text area does not handle < correctly. Tested 10-01 Mac and Linux, 10-03 Win32 M10 build.
Updated•25 years ago
|
Assignee: karnaze → kmcclusk
Comment 1•25 years ago
|
||
Reassigning to Kevin.
Comment 2•25 years ago
|
||
The problem seems to be with attributes which begin with an entity reference. In the example below (value=< πώ) fails. It only display the <. If you insert a non entity reference before the < such as a x. (value=x< πώ) then it works correctly. It displays the x, <, backspace and πώ. <HTML> <BODY> <FORM> <INPUT type=button style="width:100px;" value=x< πώ> </FORM> </BODY> </HTML>
Comment 3•25 years ago
|
||
The content model with (value=< πώ) webshell=00C79E40 html refcount=3< head refcount=2< > Text refcount=3<\n > body refcount=3< Text refcount=3<\n > form refcount=4< Text refcount=3<\n > input type=button style=width: 100px; value=<  = refcount=6<> Text refcount=3<\n > > Text refcount=3<\n \n\n> > > The content model with (value=x< πώ) html refcount=3< head refcount=2< > Text refcount=3<\n > body refcount=3< Text refcount=3<\n > form refcount=4< Text refcount=3<\n > input type=button style=width: 100px; value=x<α=¦ refcount=6<> Text refcount=3<\n > > Text refcount=3<\n \n\n> > > Dumping the content model in viewer shows the attribute for the button is not set to the correct value when it begins with an entity reference.
Updated•25 years ago
|
Assignee: kmcclusk → rickg
Comment 4•25 years ago
|
||
I set a break point in void nsCParserNode::AddAttribute(CToken* aToken). When I look at the aToken's mTextValue it is set to "<" for (value=< πώ). When value is set to (value=x< πώ) the entire string is correctly stored in the aToken's mTextValue. Rick, looks like a parser bug.
The parser was seeing the entity and stopping after that. I've taught it to continue until the next common terminal. I'll check this in tomorrow after a code review.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Fixed by loosening up parsing rules for entities within attribute values.
Using the 1999101808 build under NT, this looks the same as it does under 4.7. I've posted a simple test case to http://schist/15581.html (Netscape internal only).
You need to log in
before you can comment on or make changes to this bug.
Description
•