Re: diazo tests are failing ...
Jamie Lentin <jm-Pj/[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.devel |
|---|---|
| Message-ID | <[email protected]> |
On 2014-06-17 12:35, Jens W. Klein wrote: > ... because of different linebreaks in markup, i.e. > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml"> > - <body> > - <h1>Title</h1> > - <div id="content"> > - <p>content</p> > - </div> > - </body> > +<body><h1>Title</h1><div id="content"><p>content</p></div></body> > </html> > > is this a problem with my local setup or whats happens here? IIRC, whitespace / no whitespace is dependent on your libxml/libxslt setup. I thought garbas changed the tests to be white-space independent though. <vague unhelpful="probably"> I faced the exact same problem for unit tests in a bespoke CMS a long time ago. I *think* the issue was that libxml needs to know it won't be changing the document by adding text nodes with whitespace, and to do that it needs to know it's HTML. There's some fragile namespace / schema shenanigans here to work this out, but precisely what I can't remember. </vauge> > > regards Jens ------------------------------------------------------------------------------ HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. Leverages Graph Analysis for Fast Processing & Easy Data Exploration http://p.sf.net/sfu/hpccsystems