Bug with accessing XML data named “duration” Jquery

crazykiller

New Member
Is there any reason why something named 'duration' wouldn't work in JQuery?For example, here is my XML\[code\]<video description="description etc" duration="43306" id="1144537378001" name="Fashion" thumbnail="http://www.domain.com/1144537378001-219x119.jpg" videoURL="http://www.domain.com/Half.mp4" videoId="1144537378001"/>alert($(this).attr("duration"));alert($(this).attr("thumbnail"));alert($(this).attr("id"));\[/code\]Everything will alert ok, except duration will always be NaN despite being fine in the XML. Even before I do parseInt or eval.I can't change the XML so any workarounds using JS would be awesome.
 
Top