php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #17216 DOM XML uses non-DOM compliant calls
Submitted: 2002-05-14 16:30 UTC Modified: 2002-06-08 11:03 UTC
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: bmatzelle at yahoo dot com Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.2.1 OS: All
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: bmatzelle at yahoo dot com
New email:
PHP Version: OS:

 

 [2002-05-14 16:30 UTC] bmatzelle at yahoo dot com
I could not help but notice that all DOM XML calls use an
underscore-based convention:

i.e.
$mynode->append_child($achild);

I am no language lawyer but if you read the DOM Core documentation
(http://www.w3.org/TR/DOM-Level-3-Core/core.html) it suggests a case-based (no underscore) convention:

i.e.
$mynode->appendChild($achild);

Also, every DOM compliant library that I've looked at uses this same convention.  Will the case-based convention be used in PHP 4.3.0?  If not then it should be considered as it seems to be a violation of the DOM.

Warm regards,

Brent

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-17 12:29 UTC] hubweb at hotmail dot com
On s'en sacre-tu rien qu'un peu ??? Tant que ?a marche batard, c'est parfait ! Non ???
 [2002-06-08 10:55 UTC] bigredlinux at yahoo dot com
You can pray all you want, this isn't going to change.  I suggest we close this bug.  PHP has adoped the standard of underscore seperated words and not the humpback method.  It would be ridiculous for a single php extension to use this method and no others.  Remember, it is a DOM recommendation, not a law!
 [2002-06-08 11:03 UTC] mfischer@php.net
Good idea. This was discussed already. It's not going to change.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Sep 11 18:01:28 2024 UTC