Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2002-03

A bug in XML???

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Sebastian Günther
to Matjaz Mihelic: TDOMAttr has Name and Value propertys, but only Name is actualy being asociated with…
Matjaz Mihelic wrote
TDOMAttr has Name and Value propertys, but only Name is actualy being asociated with reading. Calling GetNodeValue is not possible from program since it's protected.

[...]

// property Value: DOMString read FNodeValue write SetNodeValue; WRONG ONE causes Value not to be updated property Value: DOMString read GetNodeValue write SetNodeValue;

You are right, this is a bug. I've fixed it and committed a patch to CVS (both fixbranch and mainbranch).

- Sebastian

Reply by email

Matjaz Mihelic

TDOMAttr has Name and Value propertys, but only Name is actualy being asociated with reading.
Calling GetNodeValue is not possible from program since it's protected.

I used component override, but I wonder if this bug could be corrected in next fpc for lazarus.

  TDOMAttr = class(TDOMNode_WithChildren)
  protected
    FSpecified: Boolean;
    AttrOwner: TDOMNamedNodeMap;
    function  GetNodeValue: DOMString; override;
    procedure SetNodeValue(AValue: DOMString); override;
    constructor Create(AOwner: TDOMDocument);
  public
    function CloneNode(deep: Boolean; ACloneOwner: TDOMDocument):
TDOMNode; override;
    property Name: DOMString read FNodeName;
    property Specified: Boolean read FSpecified;
//    property Value: DOMString read FNodeValue write SetNodeValue;
 WRONG ONE causes Value not to be updated
    property Value: DOMString read GetNodeValue write SetNodeValue;
PROBABLY at least it's working correct for me
  end;

Reply by email