php.net |  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: ezyang@php.net 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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ezyang@php.net
New email:
PHP Version: OS:

 

 [2007-06-18 01:47 UTC] ezyang@php.net
Description:
------------
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.


Patches

Pull Requests

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 18:01:29 2024 UTC