After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 431165 - Dies on id that starts with a number in a css rule
Dies on id that starts with a number in a css rule
Status: RESOLVED INCOMPLETE
Product: gtkhtml2
Classification: Deprecated
Component: General
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Rodney Dawes
Rodney Dawes
Depends on:
Blocks:
 
 
Reported: 2007-04-18 22:12 UTC by Sven Arvidsson
Modified: 2008-11-16 18:10 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sven Arvidsson 2007-04-18 22:12:18 UTC
[ Forwarded from http://bugs.debian.org/359965 ]

"I have managed to produce a small test case:

--------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
   <channel>
      <title>test</title>
      <link/>
      <item>
         <title>test</title>
         <description><![CDATA[<style type="text/css">#1 {}</style><br id="1"/>]]></description>
      </item>
   </channel>
</rss>
--------------------------------------------------------------------

This causes liferea to die with the reported error message. If I change the #1 to #i within the <style> tag, liferea no longer dies. Also, the bug only appears when using the gtkhtml backend.

Now, this is arguably not-a-bug, since the HTML spec says that 

 ID and NAME tokens must begin with a letter ([A-Za-z]) and may be
 followed by any number of letters, digits ([0-9]), hyphens ("-"),
 underscores ("_"), colons (":"), and periods (".").

but i'm not sure we should just dismiss it, because of the old 'be liberal in what you accept' thing. Thus, I just downgrade it to minor."

I can reproduce this with version 2.11.0.
Comment 1 Rodney Dawes 2007-06-28 02:53:16 UTC
I am unable to reproduce this error with SVN gtkhtml2. The page does not render for me, but there is no console printed error, and the testgtkhtml application does not crash. Can you please try to reproduce this problem with the version of gtkhtml2 in SVN, and provide more information? Thanks.
Comment 2 Sven Arvidsson 2007-07-04 21:31:35 UTC
I tried SVN r1152, but still get the crash and error. I used the test code from the original bug report. 
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=359965

I will ping the original bug submitter from Debian and ask him to have a look also.
Comment 3 André Klapper 2008-11-16 18:10:14 UTC
Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for.
Thanks!