From kde-commits Thu Aug 24 13:34:09 2006 From: Germain Garand Date: Thu, 24 Aug 2006 13:34:09 +0000 To: kde-commits Subject: branches/KDE/3.5/kdelibs/khtml/html Message-Id: <1156426449.782759.11160.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=115642645902610 SVN commit 576638 by ggarand: "make sure to call setChanged when an anchor changes from not being a link to being a link (and vice versa)." WC/-r15834/#10349/ "Anchor elements with dynamically created HREF attributes do not update their style" adapted from patch by David Hyatt M +3 -0 html_inlineimpl.cpp --- branches/KDE/3.5/kdelibs/khtml/html/html_inlineimpl.cpp #576637:576638 @@ -175,8 +175,11 @@ switch(attr->id()) { case ATTR_HREF: + bool hadAnchor = m_hasAnchor; m_hasAnchor = attr->val() != 0; getDocument()->incDOMTreeVersion(); + if (hadAnchor != m_hasAnchor) + setChanged(); break; case ATTR_TARGET: m_hasTarget = attr->val() != 0;