GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing html.spec.whatwg.org — HTML Standard 14 The XML syntaxSupport in all current engines. Firefox2+Safari3.1+Chrome4+ Opera9+Edge79+ Edge (Legacy)12+Internet Explorer9+ Firefox Android4+Safari iOS2+Chrome Android18+WebView Android2+Samsung Internet1.0+Opera Android10.1+ This section only describes the rules for XML resources. Rules for
Using the XML syntax is not recommended, for
reasons which include the fact that there is no specification which defines the rules for how an
XML parser must map a string of bytes or characters into a 14.1 Writing documents in the XML syntaxThe XML syntax for HTML was formerly referred to as "XHTML", but this specification does not use that term (among other reasons, because no such term is used for the HTML syntaxes of MathML and SVG). The syntax for XML is defined in XML and Namespaces in XML. [XML] [XMLNS] This specification does not define any syntax-level requirements beyond those defined for XML proper. XML documents may contain a According to XML, XML processors are not guaranteed to process
the external DTD subset referenced in the DOCTYPE. This means, for example, that using entity references for characters in XML documents
is unsafe if they are defined in an external file (except for 14.2 Parsing XML documentsThis section describes the relationship between XML and the DOM, with a particular emphasis on how this interacts with HTML. An XML parser, for the purposes of this specification, is a construct that
follows the rules given in XML to map a string of bytes or characters into a
At the time of writing, no such rules actually exist. An XML parser is either associated with a This
For the operations that the XML parser performs on the Between the time an element's start tag is parsed and the time either the element's end tag is parsed or the parser detects a well-formedness error, the user agent must act as if the element was in a stack of open elements. This is used by various elements to only start certain processes once they are popped off of the stack of open elements. This specification provides the following additional information that user agents should use when retrieving an external entity: the public identifiers given in the following list all correspond to the URL given by this link. (This URL is a DTD containing the entity declarations for the names listed in the named character references section.) [XML]
Furthermore, user agents should attempt to retrieve the above external entity's content when one of the above public identifiers is used, and should not attempt to retrieve any other external entity's content. This is not strictly a violation of XML, but it does contradict the spirit of XML's requirements. This is motivated by a desire for user agents to all handle entities in an interoperable fashion without requiring any network access for handling external subsets. [XML] XML parsers can be invoked with XML scripting support enabled or XML scripting support disabled. Except where otherwise specified, XML parsers are invoked with XML scripting support enabled. When an XML parser with XML scripting support
enabled creates a
Since the When the XML parser has XML scripting support disabled, none of this happens. When an XML parser would append a node to a
This is a willful violation of XML; unfortunately,
XML is not formally extensible in the manner that is needed for When an XML parser creates a Certain algorithms in this specification spoon-feed the parser characters one at a time. In such cases, the XML parser must act as it would have if faced with a single string consisting of the concatenation of all those characters. When an XML parser reaches the end of its input, it must stop parsing, following the same rules as the HTML parser. An XML parser can also be aborted, which must again be done in the same way as for an HTML parser. For the purposes of conformance checkers, if a resource is determined to be in the XML syntax, then it is an XML document. 14.3 Serializing XML fragmentsThe XML fragment serialization
algorithm for a For For In both cases, the string returned must be XML namespace-well-formed and must be an isomorphic
serialization of all of that node's relevant child nodes, in tree order.
User agents may adjust prefixes and namespace declarations in the serialization (and indeed might
be forced to do so in some cases to obtain namespace-well-formed XML). User agents may use a
combination of regular text and character references to represent A node's relevant child nodes are those that apply given the following rules:
For For the purposes of this section, an internal general parsed entity is considered XML namespace-well-formed if a document consisting of an element with no namespace declarations whose contents are the internal general parsed entity would itself be XML namespace-well-formed. If any of the following error cases are found in the DOM subtree being serialized, then the
algorithm must throw an "
These are the only ways to make a DOM unserialisable. The DOM enforces all the
other XML constraints; for example, trying to append two elements to a 14.4 Parsing XML fragmentsThe XML fragment parsing algorithm given an
|
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |