#40567 [Opn->Bgs]: DOMDocument->createElement()

From: Date: Wed, 21 Feb 2007 17:16:18 +0000
Subject: #40567 [Opn->Bgs]: DOMDocument->createElement()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-109270@lists.php.net to get a copy of this message
ID: 40567 Updated by: rrichards@php.net Reported By: bpipe at mail dot ru -Status: Open +Status: Bogus Bug Type: Feature/Change Request PHP Version: 5.2.1 New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php element names are already validated and cause an error to be issued. The ":" char is a valid character in an element name Previous Comments: ------------------------------------------------------------------------ [2007-02-20 22:07:26] bpipe at mail dot ru Description: ------------ DomDocument->CreateElement() I have a feature request, i think you should add a waring or notice when someone is calling CreateElement with ':' in node name. Like this one: $xsl->createElement('xsl:import'); instead of CreateElementNS, because this problem is hard to detect (document look like it should when you output it) I made this mistake myself and it took me 2 days to find out the problem, and only when i found the problem i managed to find any information about this in bugzilla. A notice when you create XML node with ':' in name could save 2 days of my life ) Really very hard to detect this mistake, i was googling, sitting in IRC and asking everyone for 48 hours without any result. And i think I'm not alone who "stepped on this rake" ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=40567&edit=1

« previous php.bugs (#109270) next »