|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #41721 Implement publically accessible interface for line numbers
Submitted: 2007-06-18 01:47 UTC Modified: 2007-06-25 18:07 UTC
From: Assigned:
Status: Open Package: Feature/Change Request
PHP Version: 5CVS-2007-06-18 (CVS) OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
New email:
PHP Version: OS:


 [2007-06-18 01:47 UTC]
This is a feature request.

The DOM extension currently offers no easy way of accessing the original line numbers of nodes. While I understand that the DOM specification currently defines no way of retrieving such data, I believe the benefits of a proprietary property far outweigh the possible interoperability concerns.

It should be noted that libxml already contains this functionality, and line numbers are accessible via saxon:line-number() (this was fixed in Bug #34103). Theoretically, it is possible to retrieve this information by running the document through a special EXSLT stylesheet and then cross-referencing with the output: this strikes me as quite overkill.


Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Mar 03 10:01:29 2024 UTC