[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#349406: konqueror: Alternate attribute is ignored in stylesheet declarations in XML



Package: konqueror
Version: 4:3.5.0-4
Severity: normal


konqueror ignores the alternate attribute for stylesheets in XML.
For instance the following lines in a xml header:

    <?xml-stylesheet title="1" href="s1.css" type="text/css"?>
    <?xml-stylesheet alternate="yes" title="2" href="s2.css" type="text/css"?>

entails that 2 stylesheets are available, the first one being the
default, the second one being alternate. So konqueror should propose
to choose between them in its stylesheet menu. But it simply
concatenates the two stylesheets into one and apply everything at
once.

By the way, if the second stylesheet is absent, the document is not
rendered at all.


Example:
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet title="1" href="s1.css" type="text/css"?>
<?xml-stylesheet alternate="yes" title="2" href="s2.css" type="text/css"?>
<a>
    <b>Test: À</b>
</a>



s1.css:

@charset "UTF-8";

a:before {
    display: block;
    content: "À";
}

a {
    display: block;
    color: #ccc;
}

b {
    display: block;
}


s2.css:

@charset "UTF-8";

a:before {
    display: block;
    content: "À";
}

a {
    display: block;
}

b {
    display: block;
    color:#f00;
}


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14-1-686
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)

Versions of packages konqueror depends on:
ii  kcontrol                  4:3.5.0-4      control center for KDE
ii  kdebase-kio-plugins       4:3.5.0-4      core I/O slaves for KDE
ii  kdelibs4c2a               4:3.5.0-3      core libraries for all KDE applica
ii  kdesktop                  4:3.5.0-4      miscellaneous binaries and files f
ii  kfind                     4:3.5.0-4      file-find utility for KDE
ii  libacl1                   2.2.34-1       Access control list shared library
ii  libart-2.0-2              2.3.17-1       Library of functions for 2D graphi
ii  libattr1                  2.4.25-1       Extended attribute shared library
ii  libaudio2                 1.7-3          The Network Audio System (NAS). (s
ii  libc6                     2.3.5-12       GNU C Library: Shared libraries an
ii  libfontconfig1            2.3.2-1.1      generic font configuration library
ii  libfreetype6              2.1.10-1       FreeType 2 font engine, shared lib
ii  libgamin0 [libfam0]       0.1.7-3        Client library for the gamin file 
ii  libgcc1                   1:4.0.2-5      GCC support library
ii  libice6                   6.9.0.dfsg.1-3 Inter-Client Exchange library
ii  libidn11                  0.5.18-1       GNU libidn library, implementation
ii  libjpeg62                 6b-11          The Independent JPEG Group's JPEG 
ii  libkonq4                  4:3.5.0-4      core libraries for Konqueror
ii  libpng12-0                1.2.8rel-5     PNG library - runtime
ii  libqt3-mt                 3:3.3.5-3      Qt GUI Library (Threaded runtime v
ii  libsm6                    6.9.0.dfsg.1-3 X Window System Session Management
ii  libstdc++6                4.0.2-5        The GNU Standard C++ Library v3
ii  libx11-6                  6.9.0.dfsg.1-3 X Window System protocol client li
ii  libxcursor1               1.1.3-1        X cursor management library
ii  libxext6                  6.9.0.dfsg.1-3 X Window System miscellaneous exte
ii  libxft2                   2.1.7-1        FreeType-based font drawing librar
ii  libxi6                    6.9.0.dfsg.1-3 X Window System Input extension li
ii  libxinerama1              6.9.0.dfsg.1-3 X Window System multi-head display
ii  libxrandr2                6.9.0.dfsg.1-3 X Window System Resize, Rotate and
ii  libxrender1               1:0.9.0.2-1    X Rendering Extension client libra
ii  libxt6                    6.9.0.dfsg.1-3 X Toolkit Intrinsics
ii  zlib1g                    1:1.2.3-9      compression library - runtime

konqueror recommends no packages.

-- no debconf information



Reply to: