Accessing HTML element attributes from dom_nodeimpl.cpp

Db Mahendra-a5792c a5792c at motorola.com
Tue May 22 11:50:39 BST 2007


Hi,
 
      Can any one suggest how to access HTML element attributes if we
have corresponding DOM node pointer ? I tried following piece of code
thru ddd debugger to access the element attributes of COL element; but
unfortunately it failed. It is displaying some unreadable characters. 
 
printf  "%s" ,
(this->enclosingBlockFlowOrTableElement())->getAttribute(this->id()).m_s
tring.string().ascii()
 
printf  "%s" ,
(this->enclosingBlockFlowOrTableElement())->getAttribute(this->id()).m_s
tring.string().latin1()
 
printf  "%s" ,
(this->enclosingBlockFlowOrTableElement())->getAttribute(this->id()).m_s
tring.string().data()
 
Note:  In above statements, "this" is a COL Node pointer. (NodeImpl*).
The function enclosingBlockFlowOrTableElement() returns ElementImpl* .
 
Thanks ...
 
Regards,
mdb
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20070522/a0ac731e/attachment.htm>


More information about the kfm-devel mailing list