Validate Name parameter of QName

Biju bijumaillist at gmail.com
Sun May 3 08:13:43 PDT 2009


reference: https://bugzilla.mozilla.org/show_bug.cgi?id=490758

The spec allow QName be called with invalid characters in the Name parameter
ie, QName("~!@#$%^") gives localName = "~!@#$%^"

Isn't it better to validate name parameter before making it localName?

Cheers
Biju


More information about the es-discuss mailing list