From 6138945d53d4c2b0f8649d5b21f3fc34a5888843 Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Fri, 28 Feb 2014 00:04:44 +0100 Subject: [PATCH] Moved some of the CDATA docs around. --- lib/oga/lexer.rl | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/lib/oga/lexer.rl b/lib/oga/lexer.rl index 7124d7e..1329412 100644 --- a/lib/oga/lexer.rl +++ b/lib/oga/lexer.rl @@ -109,15 +109,6 @@ module Oga 'HTML'i whitespace* any* greater; # CDATA - # - # http://www.w3.org/TR/html-markup/syntax.html#cdata-sections - # - # CDATA tags are broken up into 3 parts: the start, the content and the - # end tag. - # - # In HTML CDATA tags have no meaning/are not supported. Oga does support - # them but treats their contents as plain text. - # cdata_start = smaller bang lbracket 'CDATA' lbracket; cdata_end = rbracket rbracket greater; @@ -129,8 +120,13 @@ module Oga # CDATA # - # When processing CDATA patterns we'll emit tokens for the start tag, - # the content and the end tag. + # http://www.w3.org/TR/html-markup/syntax.html#cdata-sections + # + # CDATA tags are broken up into 3 parts: the start, the content and the + # end tag. + # + # In HTML CDATA tags have no meaning/are not supported. Oga does + # support them but treats their contents as plain text. # cdata_start %{