htmldiff issue

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

htmldiff issue

=JeffH-4
Reply | Threaded
Open this post in threaded view
|

Re: htmldiff issue

Robin Berjon-2
On Jul 2, 2011, at 23:40 , =JeffH wrote:
> So I'm trying to diff these two specs..
>
> https://dvcs.w3.org/hg/content-security-policy/raw-file/tip/csp-unofficial-draft-20110315.html
>
> https://dvcs.w3.org/hg/content-security-policy/raw-file/tip/csp-specification.dev.html

It looks like you're trying to diff a ReSpec document with the output from running ReSpec, is that on purpose? There's going to be a big difference between the two, but it'll tell you a *lot* more about what ReSpec does than about actual changes in the document since March. I don't know htmldiff, but is it quite possible that it doesn't like <section> elements?

--
Robin Berjon - http://berjon.com/ - @robinberjon


Reply | Threaded
Open this post in threaded view
|

Re: htmldiff issue

Shane McCarron
htmldiff doesn't care about section elements.  But it also doesn't know
how to deal with the pre-generated data.  Generate the HTML (or XHTML)
output and then diff the output.  Or.... use the in-built htmldiff
support in respec.  It can generate the html and then compare that
output with a static html version.

On 7/3/2011 7:46 AM, Robin Berjon wrote:
> On Jul 2, 2011, at 23:40 , =JeffH wrote:
>> So I'm trying to diff these two specs..
>>
>> https://dvcs.w3.org/hg/content-security-policy/raw-file/tip/csp-unofficial-draft-20110315.html
>>
>> https://dvcs.w3.org/hg/content-security-policy/raw-file/tip/csp-specification.dev.html
> It looks like you're trying to diff a ReSpec document with the output from running ReSpec, is that on purpose? There's going to be a big difference between the two, but it'll tell you a *lot* more about what ReSpec does than about actual changes in the document since March. I don't know htmldiff, but is it quite possible that it doesn't like<section>  elements?
>

--
Shane McCarron
Managing Director, Applied Testing and Technology, Inc.
+1 763 786 8160 x120


Reply | Threaded
Open this post in threaded view
|

Re: htmldiff issue

=JeffH-4
In reply to this post by =JeffH-4
 > On Jul 2, 2011, at 23:40 , =JeffH wrote:
 >> So I'm trying to diff these two specs..
 >>
 >>
https://dvcs.w3.org/hg/content-security-policy/raw-file/tip/csp-unofficial-draft-20110315.html
 >>
 >>
 >>
https://dvcs.w3.org/hg/content-security-policy/raw-file/tip/csp-specification.dev.html
 >
 >>
 > It looks like you're trying to diff a ReSpec document with the output from
 > running ReSpec...

Nope, that's not what's going on. The above URIs reference two different
versions of the same spec. Both are what you are calling a "ReSpec document".

[ more thoughts/questions in my reply to Shane ]

thanks,

=JeffH



Reply | Threaded
Open this post in threaded view
|

Re: htmldiff issue

=JeffH-4
In reply to this post by =JeffH-4
 > Or.... use the in-built htmldiff
 > support in respec.  It can generate the html and then compare that
 > output with a static html version.

Yes, thanks, I've tried. It isn't working for me.

I added..

   previousDiffURI:
"https://dvcs.w3.org/hg/content-security-policy/raw-file/tip/csp-unofficial-draft-20110315.html",

..to a local copy of csp-specification.dev.html on my machine, then rendered it
in a browser (ReSpec seems to work fine), then Cntl-Alt-Shift-s, click
[Diffmark], and the diff generation begins, but then hangs with a blank page
and a message of "There is no oldfile and no oldcontent parameter."

Should this approach not work?

In terms of rendered html diffs, and the W3C Mercurial web app, I'd like to be
able to diff a rendered view of the latest version of a spec against some
identified prior version, or other referenceable file, as well as rendered-view
diffs between individual changesets,  sorta like wikipedia can do.

thanks,

=JeffH




Reply | Threaded
Open this post in threaded view
|

Re: htmldiff issue

=JeffH-4
In reply to this post by =JeffH-4
=JeffH hastily said:
 >  Robin Berjon replied:
 >  > On Jul 2, 2011, at 23:40 , =JeffH wrote:
 >  >> So I'm trying to diff these two specs..
 >  >>
 >  >>
 >
https://dvcs.w3.org/hg/content-security-policy/raw-file/tip/csp-unofficial-draft-20110315.html
 >  >>
 >  >>
 >  >>
 >
https://dvcs.w3.org/hg/content-security-policy/raw-file/tip/csp-specification.dev.html
 >  >
 >  >>
 >  > It looks like you're trying to diff a ReSpec document with the output from
 >  > running ReSpec...
 >
 > Nope, that's not what's going on. The above URIs reference two different
 > versions of the same spec. Both are what you are calling a "ReSpec document".

oops, my apologies, I am mistaken, and you are correct Robin.

thanks,

=JeffH