From bc9b9bc9537d9dc614b47323e0a6727a4ec2dd04 Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Wed, 15 Apr 2015 01:50:42 +0200 Subject: [PATCH] Remove unneeded Ragel machine for HTML attrs We can just use the same machine here as used for XML attribute values. --- ext/ragel/base_lexer.rl | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/ext/ragel/base_lexer.rl b/ext/ragel/base_lexer.rl index 2a6143a..fe12a53 100644 --- a/ext/ragel/base_lexer.rl +++ b/ext/ragel/base_lexer.rl @@ -386,7 +386,7 @@ html_attribute_value := |* squote | dquote => { fhold; - fnext html_attribute_value_quoted; + fnext xml_attribute_value; }; # Unquoted attribute values are lexed as if they were single quoted @@ -402,15 +402,6 @@ any => hold_start_element_head; *|; - # Machine specifically used when dealing with quoted HTML attributes. This - # ensures that input such as doesn't result in "/" being - # considered part of the attribute value. - html_attribute_value_quoted := |* - squote => start_string_squote; - dquote => start_string_dquote; - any => hold_start_element_head; - *|; - # Machine used for processing XML attribute values. xml_attribute_value := |* squote => start_string_squote;