ID:          40567
 Updated by:  [EMAIL PROTECTED]
 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

Reply via email to