By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,696 Members | 2,256 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,696 IT Pros & Developers. It's quick & easy.

Validator gives: "Uncaught error java.lang.Exception: Import loop detected"

P: n/a
Hi,

When I validate this page: http://www.drfunkenstein.net/using
http://jigsaw.w3.org/css-validator/, I get the following results:

http://jigsaw.w3.org/css-validator/v...nkenstein.net/

Or briefly:

"Uncaught error java.lang.Exception: Import loop detected in
http://www.drfunkenstein.net/styles/base.css"

I'm guessing that the validator is telling me there's some kind of loop
created by the import statements in my CSS, but I can't for the life of
me see the error. The java.lang.Exception part makes me suspicious that
this is a bug in the validator rather than in my CSS, but I can't be
certain and it's probably a fault in my CSS :)

Any ideas would be very gratefully appreciated, thanks for reading.
Matt :)

Jul 21 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Matt Bostock wrote:
Hi,

When I validate this page: http://www.drfunkenstein.net/using
http://jigsaw.w3.org/css-validator/, I get the following results:

http://jigsaw.w3.org/css-validator/v...nkenstein.net/

Or briefly:

"Uncaught error java.lang.Exception: Import loop detected in
http://www.drfunkenstein.net/styles/base.css"

here it says:
Please, validate your XML document first!

maybe a good advice indeed

Jul 21 '05 #2

P: n/a
Please try again; I was working on that page in the last 5 minutes and
I hadn't yet checked for validation.

It's 100% valid XHTML now.

Thanks,
Matt

Jul 21 '05 #3

P: n/a
Matt Bostock wrote:
Please try again; I was working on that page in the last 5 minutes and
I hadn't yet checked for validation.

It's 100% valid XHTML now.

Thanks,
Matt


it looks like you confuse the validator by referring to the same .css
files in screen.css, projection.css and handheld.css.
Jul 21 '05 #4

P: n/a
Martin! wrote:
it looks like you confuse the validator by referring to the same .css files in screen.css, projection.css and handheld.css.


....but they're all for different media - surely that'd make it a bug
with the validator?

Thanks,
Matt

Jul 21 '05 #5

P: n/a
Matt Bostock wrote:
Martin! wrote:
it looks like you confuse the validator by referring to the same .css


files in screen.css, projection.css and handheld.css.

...but they're all for different media - surely that'd make it a bug
with the validator?


i didnt invent this, i tested with your code
Jul 21 '05 #6

P: n/a
Yes, I'm quite aware that you didn't 'invent' the validator. I didn't
imply that you had. You might be correct that the validator is confused
by my multiple references to the same .css files from different
stylesheets (albeit for different media); I'm not sure however whether
that means it's an error with my CSS or with the validator.

I was hoping for a response for someone who may have experienced a
similar error in the past, or someone with an in-depth grasp of that
particular validator.

Many thanks,
Matt

Jul 21 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.