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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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: Sat Nov 23 09:01:28 2024 UTC