Exception with template and table (mw.loader::execute)

From semantic-mediawiki.org

Hi,

Firebug reports 'mw.loader::execute> Exception thrown by ext.srf.filtered.value-filter: this.data(...).values[item] is undefined' when using filtered format with a template.

{{ #ask: [[Category:Process]]
    | ?Has Accountable|+filter=value
    | format = filtered
    | views=list
    | list view type=list
    | list view template=srfProcessFiltered
    | list view introtemplate=srfProcessFiltered_Intro
    | list view outrotemplate=srfProcessFiltered_Outro
}}

Intro Template:
<table>

Template:
<tr><td>{{{1}}}</td><td>{{{2}}}</td></tr>

Outro Template:
</table>

MW 1.19.7 SMW 1.8.0.5 SRF 1.8 $wgRawHtml=true;

The exception occurs during page load. The unfiltered content is loaded but when clicking on an filter item nothing happens (filter not applied).

This seems to happen only if table elements are present in the templates. Simple lists or comma separated output via template works fine.

07:16, 9 September 2013

... the same exception occurs when using DIVs with display:table styles.

08:00, 9 September 2013

The same happens with MW 1.20.7 and SMW 1.8.0.5. and $wgRawHtml=false; Did you file a bug for this?

19:16, 29 September 2013

Hi Karsten, we were able to fix this. We (gesinn.it) sponsored dev for a new view "table". We are about to commit our changes very soon.

/Alexander Gesinn

18:01, 1 October 2013

Heiya Alexander,

that's very cool news! Adding more views to this result format is great and I am curious to try the implementation.

Cheers

18:15, 1 October 2013

Is there a fix for this already? I have same issue with

  • MW1.22.6
  • SMW 1.9.2
  • SRF 1.9.1

Exception thrown by ext.srf.filtered.value-filter TypeError: this.data(...).values[item] is undefined ...m.nodeName.toLowerCase()===name.toLowerCase();},each:function(obj,callback,args)...

00:52, 14 May 2014