From kfm-devel Thu May 24 11:13:53 2007 From: "Db Mahendra-a5792c" Date: Thu, 24 May 2007 11:13:53 +0000 To: kfm-devel Subject: RE: Accessing HTML element attributes from dom_nodeimpl.cpp Message-Id: <7C57DB58C81FB64CA979EC6C4DB73E7A01DA045B () ZMY16EXM67 ! ds ! mot ! com> X-MARC-Message: https://marc.info/?l=kfm-devel&m=118000530902235 Hi Maksim, Thank you so much for the suggestion. mdb -----Original Message----- From: Maksim Orlovich [mailto:mo85@cornell.edu] Sent: Tuesday, May 22, 2007 9:06 PM To: kfm-devel@kde.org Subject: Re: Accessing HTML element attributes from dom_nodeimpl.cpp Importance: High > 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() You should be using ATTR_COL for parameter to getAttribute, not ID_COL. And if it's about your column post earlier, you probably need to look at it at the renderer level and not the DOM level.