Closed Bug 348832 Opened 19 years ago Closed 19 years ago

user defined tag missing first attribute if page without body tag

Categories

(Firefox :: General, defect)

1.0 Branch
x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 324182

People

(Reporter: jerry, Assigned: mrbkap)

Details

(Keywords: testcase)

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6 this page: <ucf type="abc" value="bbb"/> <ucf type="bcd" value="....."/> <ucf type="adf" value="...."/> the first ucf node has only two attribute,one is _moz-userdefined with empty value,and the other is value with value as "bbb",the type attribute is missing,all following ucf node has the correct type attribute. I try to debug,and find that when handling the first ucf node,it calls the parser/htmlparser/src/CNavDTD.cpp->HandleOmittedTag function and in that function trying aToken->GetAttributeCount only returns 2 which should be 3(cause the _moz-userdefined attr is add dynamic),so I try add a <body></body> in the page,and then everything is good. Reproducible: Always Expected Results: type attribute should be available even there is no body around
Attached file testcase from reporter
I can see the bug in FF1.5.0.6, but not in current trunk build. Reporter, could you please retest in current trunk build and see if it works there?
Keywords: testcase
Assignee: nobody → mrbkap
Component: General → HTML: Parser
Product: Firefox → Core
QA Contact: general → parser
Version: unspecified → 1.8 Branch
This is bug 324182. Sadly, it doesn't appear that we'll be able to fix this for Firefox 2 and kin. *** This bug has been marked as a duplicate of 324182 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
sorry,I was using FF 1.5.0.1 on linux,but reporting the bug using FF 1.5.0.6 on window.next time I update my code to 1.5.0.6,I will check this bug again
Component: HTML: Parser → General
Product: Core → Firefox
Version: 1.8 Branch → 1.0 Branch
Jerry, it's even better to test it on trunk builds: http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/ That bug contains all the latest fixes (and bugs).
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: