From b5860f407f83c90fed6ee5a8ba08acca5dc37e82 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Wed, 14 Aug 2013 14:17:33 +0100 Subject: [PATCH] Only allow one @charset rule. --- stylesheets.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stylesheets.rs b/stylesheets.rs index 84ba98f33ab..46ae1a953f6 100644 --- a/stylesheets.rs +++ b/stylesheets.rs @@ -56,7 +56,7 @@ fn parse_stylesheet(css: &str) -> Stylesheet { log_css_error(rule.location, "@charset must be the first rule") } // Valid @charset rules are just ignored - next_state = state; + next_state = STATE_IMPORTS; }, "import" => { if state > STATE_IMPORTS {