Difference between revisions of "dom"

From Lazarus wiki
Jump to navigationJump to search
Line 1: Line 1:
 
Implements the [http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/ DOM level 2 Core] specification and some of the [http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/ DOM level 3 Core] properties/methods.
 
Implements the [http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/ DOM level 2 Core] specification and some of the [http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/ DOM level 3 Core] properties/methods.
  
Supported DOM level 3 properties:
+
== Supported DOM level 3 properties: ==
 
* TDOMNode.TextContent
 
* TDOMNode.TextContent
 +
* TDOMText.IsElementContentWhitespace
 
* TDOMNode.LookupNamespaceURI()
 
* TDOMNode.LookupNamespaceURI()
 
* TDOMDocument.DocumentURI
 
* TDOMDocument.DocumentURI
 
* TDOMAttr.IsID
 
* TDOMAttr.IsID
 +
 +
== Issues ==
 +
* The specification says that <code>TDOMNode.lookupNamespaceURI()</code> should return the default namespace if its argument is <code>null</code> and <code>null</code> if the argument is an empty string. Pascal, however, does not allow to distinguish between <code>null</code> and empty string, so we have no other choice than returning default namespace for empty string arguments.
  
  
 
Back to [[fcl-xml]] overview.
 
Back to [[fcl-xml]] overview.

Revision as of 00:42, 4 October 2009

Implements the DOM level 2 Core specification and some of the DOM level 3 Core properties/methods.

Supported DOM level 3 properties:

  • TDOMNode.TextContent
  • TDOMText.IsElementContentWhitespace
  • TDOMNode.LookupNamespaceURI()
  • TDOMDocument.DocumentURI
  • TDOMAttr.IsID

Issues

  • The specification says that TDOMNode.lookupNamespaceURI() should return the default namespace if its argument is null and null if the argument is an empty string. Pascal, however, does not allow to distinguish between null and empty string, so we have no other choice than returning default namespace for empty string arguments.


Back to fcl-xml overview.