W3C home > Mailing lists > Public > spec-prod@w3.org > April to June 2013

ResSpec failure on data-include

From: <Frederick.Hirsch@nokia.com>
Date: Mon, 8 Apr 2013 20:25:59 +0000
To: <robin@w3.org>
CC: <Frederick.Hirsch@nokia.com>, <spec-prod@w3.org>
Message-ID: <1CB2E0B458B211478C85E11A404A2B2701A1A937@008-AM1MPN1-034.mgdnok.nokia.com>
I have an older ReSpec source file that used to work (with the dap v1 respec) but is now failing badly, perhaps something broke or I am not aware of a new call protocol or maybe I'm missing something obvious

I have a table entry of the form:

<td data-include='files/abc.xml' data-oninclude='updateExample'></td>

updateExample is defined as

function updateExample(doc, content) {
       // perform transformations to make it render and prettier
       return '<pre class="sh_xml">' + doc._esc(content) + '</pre>';

currently it looks like this processing is not happening.

Safari error console agrees, "WARN: call to updateExample() failed with TypeError: 'undefined' is not a function (evaluating 'doc._esc(content)')

Do data-include and data-oninclude still work in the latest release?

Any URL available for looking at the latest documentation, apart from looking at the git source which isn't so readable?


regards, Frederick

Frederick Hirsch
Received on Monday, 8 April 2013 20:26:32 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:55:18 UTC