any23-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hans Brende (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ANY23-328) Problem parsing json-ld content surrounded by comments
Date Fri, 09 Feb 2018 18:04:01 GMT

     [ https://issues.apache.org/jira/browse/ANY23-328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Hans Brende updated ANY23-328:
------------------------------
    Description: 
Sometimes in json-ld script blocks (e.g., on https://www.guthriegreen.com), you will see

/&ast;<![CDATA[&ast;/

...json-ld content...

/&ast;]]>&ast;/

or 

//<![CDATA[

...json-ld content...

//]]>

 

Currently we are stripping CDATA blocks, but we are not stripping leading & trailing
comments, which will cause json-ld parsing to fail. This may be related to issue #17. 

 

  was:
Sometimes in json-ld script blocks (e.g., on https://www.guthriegreen.com), you will see

/*<![CDATA[*/

...json-ld content...

/*]]>*/

or 

//<![CDATA[

...json-ld content...

//]]>

 

Currently we are stripping CDATA blocks, but we are not stripping leading & trailing
comments, which will cause json-ld parsing to fail. This may be related to issue #17. 

 


> Problem parsing json-ld content surrounded by comments
> ------------------------------------------------------
>
>                 Key: ANY23-328
>                 URL: https://issues.apache.org/jira/browse/ANY23-328
>             Project: Apache Any23
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 2.1
>            Reporter: Hans Brende
>            Priority: Major
>             Fix For: 2.3
>
>
> Sometimes in json-ld script blocks (e.g., on https://www.guthriegreen.com), you will
see
> /&ast;<![CDATA[&ast;/
> ...json-ld content...
> /&ast;]]>&ast;/
> or 
> //<![CDATA[
> ...json-ld content...
> //]]>
>  
> Currently we are stripping CDATA blocks, but we are not stripping leading & trailing
comments, which will cause json-ld parsing to fail. This may be related to issue #17. 
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message