There is no reliable way of fixing that in JavaScript, which is strongly dependant on having a well-formed DOM structure to work with. Besides, it would be a waste of processor cycles on the client side. Surely it couldn't be difficult for the server side developers to fix the scripts that generate the server side markup.
On Oct 28, 11:13 pm, Maurice Kroon <[EMAIL PROTECTED]> wrote: > Hi, > > I've got a friend that bought a booking app a view months back. Now > there is something wrong with implementation, because every time a > particular (class="select_chalet") div is opened, it won't be closed. > So, instead of waiting for the fix & repair bill, i wanted to try > something else. > This is the code: > > <!-- begin item --> > <div class="select_chalet"> > <div class="select_chalet_content"> > <div class="select_chalet_name"> > <!-- name + info chalet --> > </div> > </div> > <div class='select_chalet_status_free'>Clean</div> > <!-- begin item --> > <div class="select_chalet"> > <div class="select_chalet_content"> > <div class="select_chalet_name"> > <!-- name + info chalet --> > </div> > </div> > <div class='select_chalet_status_free'>Clean</div> > <!-- begin item --> > > As you can see, the first div, isn't closed before the next item is > started.. > I wonder if I can search for comments, and so, append the </div> after > the comment. Is that possible (and how?)? > > Thanks a lot guys, I really appreciate it.. > > Regards, > > Maurice Kroon > > ps: for the guys that will ask why I just won't change the php code > > it's encrypted.. So the booking app firm must do it..