W3C home > Mailing lists > Public > www-validator-css@w3.org > October 2003

CSS Validator Bug: Uncaught errorjava.lang.Exception: Import loop detected

From: Laura Carlson <lcarlson@d.umn.edu>
Date: Thu, 23 Oct 2003 13:48:09 -0400
To: www-validator-css@w3.org
Message-ID: <391137.1066636139@lcarslon.d.umn.edu>


I believe that this is a CSS Validator Bug. The CSS validator is giving 
me the following error message.

Line: 54
Uncaught errorjava.lang.Exception: Import loop detected in

The full report is here:

In Eric Meyer's "Cascading Style sheets the Definitive Guide" page 15 
he states, "...there can be more than one @import statement in a 
document." And the CSS below was valid previously. Has the validator 

On the Web Design list (see forwarded message below) Sam Marshall 
suggested that I contact you and report this bug. Can you please fix 


---------- Forwarded Message ----------
Date: Monday, October 20, 2003 5:25 AM -0400
From: "[WD] digest" <owner-digest@webdesign-l.com>
To: digest@webdesign-l.com
Subject: [WD] digest V2 #1616

Since you don't have an infinite loop (none of your stylesheets have
@imports except the main one), I would say this is probably a validator
bug. Most likely the loop detection is failing because of one of two

a) you have multiple imports in the <style> statement rather than in
different .css files and it is confused as it doesn't know a 'name' for
the style block .css 'file'.


b) your stylesheets have similar names until the last few characters

(Both of these would indicate a validator bug, I'm just making vague
guesses at why it might happen.)

You might want to make a copy of your files somewhere that they won't
change (so it's useful as a reference while fixing the bug) and submit
it in a bug report to the validator people. Unless I'm being thick,
there is no infinite loop anywhere in your page and even if there's
something else wrong with your CSS, the validator shouldn't report an
import loop when one doesn't exist.

If you want your page to pass the validator as-is I would suggest either
moving those @imports into <link rel='stylesheet'> statements instead,
or importing a single external stylesheet that happens to import the
three others.

- --sam

---------- End Forwarded Message ----------

Laura L. Carlson
Information Technology Systems and Services
University of Minnesota Duluth
Duluth, MN  55812-3009
Received on Thursday, 23 October 2003 13:58:13 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:40:39 UTC