CCing harishd, the owner of the parser. I know that the XML tokenizer is not passing up line number information to the XML DTD. Harish and me should work together to fix that. Harish can shed more light on whether the HTML tokenizer and DTD are calculating the line numbers properly for HTML files.
Harish has agreed to take this one. Reassigning...
great. reassigning to xml qa contact.
reassigining to the (i think) correct component. sorry if this is wrong.
Setting to M9.
Problem: New lines in comments were not taken into account. Checked in a fix for HTML files. Will look into XML example after bug# 10703 gets resolved.
Since 10703 is not resolved yet moving milestone to M10.
Counting new lines in comments in XML documents too. This bug will be completely fixed once bug# 11992 is resolved.
I fixed this for XUL documents.
Moving to M14. [ NOTE: This bug might get fixed once 11992 is fixed ].
Giving away the bug to nisheeth..because all that's left is related to XML. Nisheeth, have fun :)
Status: ASSIGNED → RESOLVED
Last Resolved: 19 years ago
Resolution: --- → FIXED
Target Milestone: M14 → M11
Changing milestone to M11. I've checked in a fix for this bug. I added the default handler to the XML tokenizer which looks for newlines and creates newline tokens. Earlier, the no default handler was registered with expat, so newlines in the document prolog were not getting reported. Also, the XML DTD was wrongly initializing the line number count to 0 instead of 1. The was causing an off by one error in the line number reported by JS. Fixed the error in the XML DTD also.
Verified fixed, Linux mozilla 1999-11-13-08-M12.
You need to log in before you can comment on or make changes to this bug.