diff src/styleengine.hh @ 901:f44e88b06200

fix check for name/id mismatch (noticed by corvid)
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Fri, 06 Feb 2009 12:36:31 +0100
parents 816f3c5f9286
children b277eed3119c
line wrap: on
line diff
--- a/src/styleengine.hh	Thu Feb 05 07:43:21 2009 -0300
+++ b/src/styleengine.hh	Fri Feb 06 12:36:31 2009 +0100
@@ -48,6 +48,7 @@
       void parse (const char *buf, int buflen, CssOrigin origin);
       void startElement (int tag);
       void setId (const char *id);
+      const char * getId () { return top ()->id; };
       void setClass (const char *klass);
       void setStyle (const char *style);
       void endElement (int tag);