edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
From: Adam Thompson <arthompson1990@gmail.com>
To: Karl Dahlke <eklhad@comcast.net>
Cc: Edbrowse-dev@lists.the-brannons.com
Subject: Re: [Edbrowse-dev] tidy debug tree, and a js script
Date: Sun, 30 Aug 2015 10:30:29 +0100	[thread overview]
Message-ID: <20150830093029.GB17154@toaster.adamthompson.me.uk> (raw)
In-Reply-To: <20150830082651.GA17154@toaster.adamthompson.me.uk>

[-- Attachment #1: Type: text/plain, Size: 1699 bytes --]

On Sun, Aug 30, 2015 at 09:26:51AM +0100, Adam Thompson wrote:
> On Sat, Aug 29, 2015 at 12:05:50PM -0400, Karl Dahlke wrote:
> > > If we want to print tidy warnings for local files fair enough,
> > > but lets make it a user's choice,
> > 
> > Actually I'm kinda stupid here.
> > I built these mashinations for local files or remote files,
> > and exceptions through some mechanism, filename or config options etc,
> > but really all I need to do is print the tidy errors at debugLevel 3 or above.
> > None of our users are going to want to see them,
> > except a rare few who write their own html,
> > and they can get along with db3 to check their sourcefiles.
> > So that's what I should do, but still not what I'm worried about.
> 
> I agree that's the correct approach.

Thanks for making this change.

> > > I wonder if it's just a printing thing or something.
> > 
> > Oh I hope it is, but I fear it's not.
> > (This would be a great time for me to be wrong.)
> > We aren't passing the contents of script.text to the js engine yet,
> > but some day we will, when tidy replaces all my software,
> > and on that day we will be passing
> > 
> > if(3 &lt; 4)
> > 
> > instead of
> > 
> > if(3 < 4)
> > 
> > At least that's how it appears.
> 
> As I said, this doesn't tally with what I'm seeing from the actual tidy tool
> (the tidy 5 version) which uses the same library as we do,
> so I suspect we're doing something incorrectly somewhere.
> I'll have a look at that code to see what they're doing differently.

It turns out what we wanted was tidyNodeGetValue which doesn't do escaping
unlike tidyNodeGetText. I've made, tested and pushed this change.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

  reply	other threads:[~2015-08-30  9:28 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-29 10:04 Karl Dahlke
2015-08-29 13:25 ` Adam Thompson
2015-08-29 14:36   ` Karl Dahlke
2015-08-29 14:58     ` Adam Thompson
2015-08-29 16:05       ` Karl Dahlke
2015-08-30  1:15         ` Kevin Carhart
2015-08-30  8:26         ` Adam Thompson
2015-08-30  9:30           ` Adam Thompson [this message]
2015-08-30  9:49             ` Karl Dahlke
2015-08-30 10:02               ` Adam Thompson
2015-08-30 10:31                 ` Karl Dahlke
2015-08-30 11:16                   ` Adam Thompson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150830093029.GB17154@toaster.adamthompson.me.uk \
    --to=arthompson1990@gmail.com \
    --cc=Edbrowse-dev@lists.the-brannons.com \
    --cc=eklhad@comcast.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).