#231179 konqueror: handle gracefully missing title element in alternate stylesheets

Package:
konqueror
Source:
konqueror
Description:
advanced file manager, web browser and document viewer
Submitter:
Ambrose Li
Date:
2024-05-09 17:36:10 UTC
Severity:
wishlist
Tags:
#231179#5
Date:
2004-02-04 23:46:07 UTC
From:
To:
background-color specified for BODY or HTML does not seem to work;
the background colour remains white even if this property is set
in a style sheet.

#231179#10
Date:
2004-07-10 00:25:35 UTC
From:
To:
tag 231179 unreproducible moreinfo
quit

* Ambrose Li [Wed, 04 Feb 2004 18:46:07 -0500]:

  hi, I can't reproduce this either. anyway, it's seems odd enough that
  I'd bet there is a misconfiguration somewhere.

  please check if you can reproduce with konqueror 3.2.

  thanks,

#231179#17
Date:
2004-07-27 19:41:02 UTC
From:
To:
Hi,

I tried with Konquerer 3.2.2 with the following web page:

http://www.cccgt.org/F_P_2004_Woodbine.html

The content of the page (in a frame) shows up with a white background
in Konqueror, but shows up as green in both Mozilla and IE.

(The frame in question sets the background-color for both HTML and BODY.)

Best regards,
Ambrose

#231179#22
Date:
2004-07-28 14:04:40 UTC
From:
To:
tag       231179 - unreproducible moreinfo
tag       231179 + confirmed
severity  231179 wishlist
retitle   231179 konqueror: handle gracefully missing title element in alternate stylesheets
forwarded 231179 http://bugs.kde.org/86173
quit

* Ambrose Li [Tue, 27 Jul 2004 15:41:02 -0400]:

  hi Ambrose,

  for the record, the page inside the frame is:

http://www.cccgt.org/2004/Woodbine/directions.html

  the real problem here is that the alternate stylesheet test.css does
  not have a title element:

    <link rel="alternate stylesheet" type="text/css" media=screen
          href="../../test.css">

  which is, as per the relevant W3C specification [1] and AIUI, not a
  valid scenario for an alternate stylesheet:

      [1] http://www.w3.org/TR/REC-html40/present/styles.html#h-14.3.2

      Specify that the style sheet is persistent, preferred, or alternate:

        - To make a style sheet persistent, set the rel attribute to
          "stylesheet" and don't set the title attribute.

        - To make a style sheet preferred, set the rel attribute to
          "stylesheet" and name the style sheet with the title
          attribute.

        - To specify an alternate style sheet, set the rel attribute to
          "alternate stylesheet" and name the style sheet with the title
          attribute.

  the user fix for this is to specify a title="foo" element in the
  alternate stylesheet link tag, like this:

    <link rel="alternate stylesheet" type="text/css" media=screen
          href="../../test.css" title="test stylesheet">

  however, as seems reasonable to handle the missing title element
  gracefully, and other browsers certainly do so, I'm forwarding this to
  upstream developers to see what they think.

  other relevant KDE BTS entries:

http://bugs.kde.org/54335
http://bugs.kde.org/47304

  thanks,