After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 580705 - HTML parser does not record line numbers
HTML parser does not record line numbers
Product: libxml2
Classification: Platform
Component: general
Other All
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Reported: 2009-04-29 07:11 UTC by Aaron Patterson
Modified: 2009-05-15 15:58 UTC
See Also:
GNOME target: ---
GNOME version: ---

Description Aaron Patterson 2009-04-29 07:11:03 UTC
Please describe the problem:
When parsing an HTML file, the line numbers for element nodes are not recording in their xmlNodePtr structures

Steps to reproduce:
1. Parse an html file 
2. find a non-text node
3. examine the node's line number

Actual results:
The line number is always 0

Expected results:
The line number would be the line in the file

Does this happen every time?

Other information:
I've created a reproduction file along with a patch here:
Comment 1 Daniel Veillard 2009-05-15 15:58:53 UTC
Okay I fixed it but moved the change directly in htmlParseDocument()

commited in git head,

  thanks !