Re: Patch to add 'id'

From: Daniel Gustafsson <daniel(at)yesql(dot)se>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: PostgreSQL www <pgsql-www(at)postgresql(dot)org>
Subject: Re: Patch to add 'id'
Date: 2018-06-10 19:29:51
Message-ID: B48E2886-B071-4EA9-932F-F38ECE1C3F18@yesql.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-www

> On 10 Jun 2018, at 04:16, Bruce Momjian <bruce(at)momjian(dot)us> wrote:
>
> Would someone please apply this patch to the website code so pglife
> (http://pglife.momjian.us/) can more easily scrape the current release
> numbers from the website? Thanks.

While harmless enough, I’m not a huge fan of adding identifiers to the site
which are not in use in the site code, such non-obvious external dependencies
make the code harder to maintain.

If you are using XPath expressions to access the values, would something like
this on the versioning page suffice for what you’re after?

//*[(at)id="pgContentWrap"]/table/tbody/tr/td[text()="Yes"]/../td[2]

cheers ./daniel

In response to

Responses

Browse pgsql-www by date

  From Date Subject
Next Message Magnus Hagander 2018-06-10 19:40:20 Re: Patch to add 'id'
Previous Message Bruce Momjian 2018-06-10 02:16:02 Patch to add 'id'