From kfm-devel Tue May 22 15:36:02 2007 From: "Maksim Orlovich" Date: Tue, 22 May 2007 15:36:02 +0000 To: kfm-devel Subject: Re: Accessing HTML element attributes from dom_nodeimpl.cpp Message-Id: <10479.24.59.194.85.1179848162.squirrel () webmail ! cornell ! edu> X-MARC-Message: https://marc.info/?l=kfm-devel&m=117984867424943 > 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.