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 Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or 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

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sat Dec 14 06:01:24 2019 UTC