Problem with getElementsByTagAndClassName and Konqueror

View: New views
2 Messages — Rating Filter:   Alert me  

Problem with getElementsByTagAndClassName and Konqueror

by Cecil Westerhof-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


In one of my JavaScript files I have the following statement:
  calInputTextArray = getElementsByTagAndClassName('*', 'calendardatepicker');
In Konqueror this gives:
  MochiKit.js line 2983: TypeError: Null Value

The code there reads:
#####
var _381=[];
for(var i=0;i<_380.length;i++){
var _382=_380[i];
var _383=_382.className.split(" ");
for(var j=0;j<_383.length;j++){
if(_383[j]==_378){
_381.push(_382);
break;
#####

The line where it goes wrong is:
    var _383=_382.className.split(" ");

What is happening here and how can it be fixed?

I am using MochiKit 1.3.1.

In FireFox and Opera it works as expected.

--
Cecil Westerhof

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "MochiKit" group.
To post to this group, send email to mochikit@...
To unsubscribe from this group, send email to mochikit-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Problem with getElementsByTagAndClassName and Konqueror

by Christoph Zwerschke :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Cecil Westerhof schrieb:
 > In one of my JavaScript files I have the following statement:
 >   calInputTextArray = getElementsByTagAndClassName('*',
'calendardatepicker');
 > In Konqueror this gives:
 >   MochiKit.js line 2983: TypeError: Null Value

I couldn't reproduce this and the packed MochiKit code doesn't help very
much. Can you provide a html file triggering this error? Which Konqueror
version do you use?

-- Christoph

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "MochiKit" group.
To post to this group, send email to mochikit@...
To unsubscribe from this group, send email to mochikit-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---