W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2001

Re: createProcessingInstruction and 'xml'

From: Ray Whitmer <rayw@netscape.com>
Date: Thu, 01 Feb 2001 10:14:17 -0800
Message-ID: <3A79A779.2090806@netscape.com>
To: Martijn Pieters <mj@digicool.com>
CC: www-dom@w3.org
The specification could do with a clarification, especially if existing 
implementations could agree.  I believe that some implementations may be 
using processing instructions named "xml" to represent XML declarations 
and text declarations that look just like a PI using the reserved xml 
name.  Others clearly do not.

Ray Whitmer

Martijn Pieters wrote:

> The XML spec states that PI targets should be valid XML Names, but never
> 'xml' in any case combination.
> Should createProcessingInstruction raise INVALID_CHARACTER_ERR when called
> with a 'xml' target? Or doesn't the DOM API enforce this rule? 
> Maybe this should be clarified in the spec, it could do with an explicit
> statement.
Received on Thursday, 1 February 2001 13:03:02 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:08 UTC