diff --git a/components/style/gecko/selector_parser.rs b/components/style/gecko/selector_parser.rs index 75e53a01db4..827e832ebcd 100644 --- a/components/style/gecko/selector_parser.rs +++ b/components/style/gecko/selector_parser.rs @@ -96,7 +96,6 @@ impl ToCss for NonTSPseudoClass { }, )* NonTSPseudoClass::Dir(ref dir) => { dest.write_str(":dir(")?; - // FIXME: This should be escaped as an identifier; see #19231 (**dir).to_css(dest)?; return dest.write_char(')') }, diff --git a/components/style/selector_parser.rs b/components/style/selector_parser.rs index ac44cc0135a..b4870557cc2 100644 --- a/components/style/selector_parser.rs +++ b/components/style/selector_parser.rs @@ -191,6 +191,7 @@ impl ToCss for Direction { let dir_str = match *self { Direction::Rtl => "rtl", Direction::Ltr => "ltr", + // FIXME: This should be escaped as an identifier; see #19231 Direction::Other(ref other) => other, }; dest.write_str(dir_str)