no error reporting in converters/html module

Bug #1025193 reported by Dennis Knochenwefel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
New
Medium
Chris Hillery

Bug Description

Consider the following example Query:

  import module namespace json = "http://www.zorba-xquery.com/modules/converters/json";
  import module namespace html = "http://www.zorba-xquery.com/modules/converters/html";
  declare namespace j = "http://john.snelson.org.uk/parsing-json-into-xquery";
  let $text := "<p>" || json:parse("{""text"":""Let's get it. \ud83d\udc4a""}")/j:pair[@name="text"]/text() || "</p>"
  return html:parse($text)

Problem:

in file src/com/zorba-xquery/www/modules/converters/html.xq.src/tidy_wrapper.h function createHtmlItem(...) doesn't throw a proper error message (discovered by ghislain) which makes debugging really hard. In contrast, parse-xml throws a very helpful error:

  dynamic error [err:FODC0006]: invalid content passed to fn:parse-xml(): loader parsing error: Char 0xD83D out of allowed range;

Could html:parse report the same error?

(not sure if chiller is you, chris?)

Changed in zorba:
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.