Giter Site home page Giter Site logo

soup-for-pharo's Introduction

soup-for-pharo's People

Contributors

astares avatar bouraqadi avatar cdrick65 avatar damiencassou avatar ducasse avatar pdebruic avatar seandenigris avatar stephaneggermont avatar zulqalam avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

soup-for-pharo's Issues

[Port]: Pharo 10 - Missing `String>>#convertForWithConverter:`

Asked on Pharo Discord:

What is the replacement for String>>#convertForWithConverter:, which has been removed in P10? Soup was using it and I'm not sure how to translate to the new Zn-based encoders. Naively, I tried just restoring the method in P10, but:

aByteString convertFromWithConverter: aZnSimplifiedEncoder "latin1 strict"

led to the error pictured...
Screen_Shot_2022-07-06_at_11 24 34_AM

cc/ @svenvc

SoupParser does not handle uppercase closing tags correctly

Method SoupParser>>parseStartTag converts the tag that it read to lowercase. Method SoupParser>>handleEndTag does not do this, which causes SoupParser>>numPops to not find the opening tag in the tagStack.

If you need an example, the following snippet does not parse the HTML page correctly:

page := ZnClient new get: 'http://elib.zib.de/pub/mp-testdata/tsp/tsplib/tsp/index.html'.
"uncomment the following line to correctly parse the page"
"page := page asLowercase." 
soup := Soup fromString: page.

Usually I would make a pull request for this, but (1) I am relatively new to Smalltalk and (2) I have never worked with the Pharo GitHub integration.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.