You are here: Foswiki>Tasks Web>Item10858 (17 Dec 2011, GeorgeClark)Edit Attach

Item10858: can't extract metadata stored in html5 data- attributes

Priority: Urgent
Current State: Closed
Released In: 1.1.4
Target Release: patch
Applies To: Extension
Component: JQueryPlugin
Reported By: MichaelDaum
Waiting For:
Last Change By: GeorgeClark
The examples in the plugin's code even don't work. This test fails:


<p id='one' class='some_class' data-item_id='1' data-item_label='Label'>This is a p</p>
jQuery(function($) {
  var opts = $("#one").metadata({type:'html5'});


This is a p

... with an "Uncaught ReferenceError: Label is not defined" javascript error. That's because the code tries to eval(Label) to create a json object from it.

Changes are tracked at A pull request has been filed upstream.

-- MichaelDaum - 08 Jun 2011


ItemTemplate edit

Summary can't extract metadata stored in html5 data- attributes
ReportedBy MichaelDaum
Codebase 1.1.3, trunk
SVN Range
AppliesTo Extension
Component JQueryPlugin
Priority Urgent
CurrentState Closed
Checkins distro:a1c850505dab distro:ac7989e5ba2d
TargetRelease patch
ReleasedIn 1.1.4
Topic revision: r4 - 17 Dec 2011, GeorgeClark - This page was cached on 16 Oct 2020 - 22:04.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy