This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 15386 - importing empty URIs crashes validator
Summary: importing empty URIs crashes validator
Status: NEW
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: Other (show other bugs)
Version: CSS Validator
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-02 14:46 UTC by Stijn van Drongelen
Modified: 2012-01-02 21:16 UTC (History)
0 users

See Also:


Attachments

Description Stijn van Drongelen 2012-01-02 14:46:54 UTC
The CSS Validator crashes with "String index out of range: 0" when the given stylesheet contains the following code:

    @import url()

According to the CSS2.1 grammar, empty URLs are acceptable. Also, the following code is accepted as valid:

    a { background-image: url() }
Comment 1 Stijn van Drongelen 2012-01-02 21:16:32 UTC
(platform irrelevant)