PowerDVD fails without IDs: Their bug or mine?
Hi all,
I'm hoping someone can do a sanity check for me, before I ask the good folks at PowerDVD to fix a bug...
(They seem nice, they asked if I could send them a disk. But I really wanted a 'Power DVD developers edition')
A little too late, I've found out our first HD-DVD release does not work with PowerDVD at all. I've traced the (first) problem down to this:
I have script that changes the 'style
isplay' attribute of child elements of another particular parent element. The child elements did not have ids, and PowerDVD stopped executing my script at the point of setting the 'style
isplay' attribute. As soon as I added dummy ids, PowerDVD stopped throwing errors.
Can I check with you guys that animatable elements do not HAVE to have an ID attribute? (ie, can I tell them they have a bug without embarassment?!!)
Thanks,
Nathan.
Code snippet for those interested...
(note the id="temp* that I dont want, is marked in grey)
<divid="item_setup"style<divid="tempid31"epc:highlight="focused"style:backgroundImage="url('file:///dvddisc/ADV_OBJ/thisdisk.aca/item_setup_s.png')"style:width="169px"style:height="44px"style
style:width="169px"style:height="44px"style:backgroundImage="url('file:///dvddisc/ADV_OBJ/thisdisk.aca/item_setup_n.png')"/></div>
-
this is edited, so it might have some typos...
itemElement = document.getElementById( "item_setup" );
// this next call effectively gets all the children that have an 'epc:highlight' attribute - not necessarily an id attribute!hlElementsAsArray = getElementsByAttributeNS( itemElement, NAMESPACE_EPC,"highlight" );
mi =
new MenuItem( itemElement.getAttribute("id" ), itemElement, animCtrl.prepareElement( itemElement ) );mi.hlElements =
newObject();for( hl=0; hl < MENU_ALL_HL.length; hl++ ){
"highlight", MENU_ALL_HL[hl] );mi.hlElements[ MENU_ALL_HL[hl] ] = getElementByAttributeNSValue( hlElementsAsArray, NAMESPACE_EPC,
}
for( hl=0; hl < MENU_NONNONE_HL.length; hl++ ){
if( e !=null )e = mi.hlElements[ MENU_NONNONE_HL[hl] ];
"display","none" ); // BANG IN POWERDVD IF I DONT USE DUMMY IDse.style.setProperty(
}

