[Webkit-unassigned] [Bug 56932] New: Consecutive link elements with title attributes block linked resources (i.e. CSS) from loading

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 23 09:44:35 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=56932

           Summary: Consecutive link elements with title attributes block
                    linked resources (i.e. CSS) from loading
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh Intel
        OS/Version: Mac OS X 10.6
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: michael at kimili.com


Created an attachment (id=86630)
 --> (https://bugs.webkit.org/attachment.cgi?id=86630&action=review)
Test case reductions for the bug outlined in this issue.

When you have multiple <link> elements which have populated title attributes listed consecutively in the source code, only the first linked resource will load. For instance:

    <link rel="stylesheet" href="css/one.css" type="text/css" media="screen" title="one" charset="utf-8" />
    <link rel="stylesheet" href="css/two.css" type="text/css" media="screen" title="two" charset="utf-8" />
    <link rel="stylesheet" href="css/three.css" type="text/css" media="screen" title="three" charset="utf-8" />

In this example, where all the link elements have title attributes, only the first CSS file - one.css - will be loaded. The others will simply be ignored.

Another example:

    <link rel="stylesheet" href="css/one.css" type="text/css" media="screen" title="one" charset="utf-8" />
    <link rel="stylesheet" href="css/two.css" type="text/css" media="screen" title="two" charset="utf-8" />
    <link rel="stylesheet" href="css/three.css" type="text/css" media="screen" charset="utf-8" />

This one will load one.css and three.css, but not two.css, as the link elements for both one and two have title elements, but three does not.

When you remove all title elements (or give them empty values), like so:

    <link rel="stylesheet" href="css/one.css" type="text/css" media="screen" charset="utf-8" />
    <link rel="stylesheet" href="css/two.css" type="text/css" media="screen" charset="utf-8" />
    <link rel="stylesheet" href="css/three.css" type="text/css" media="screen" charset="utf-8" />

all three CSS files will load.

I've attached a zip file containing these test cases.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list