Giter Club home page Giter Club logo

domparser's People

Contributors

samgoody avatar siteroller avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

jeisc

domparser's Issues

Allow get() to return object

allow get() to return an object.

$response   => auto/string/array/object
    'auto' - if only one item, return as string. Else return array.
    'string' - '<div>A</div><div>B</div>'
    'array' - array([0]=>'<div>A</div>', [1]=>'<div>B</div>')
    'object'

Set property & styles not working

"set property and styles selection not implemented".
Is this correct? If so, remove from docs for now, and add to feature requests.

Local URL Handling

Local URLs should default to using file_get_contents instead of using curl.

Skip array check if string > 10

If string is > 10 char it should not be checked against the array.
Check array to lower
get(div[id=abc], div[id=def], 'array');
The first two args are > 10, skip.

Crash on lack of closing div

If there is one closing div to few, all content is not returned correctly.

Not sure why, filing this based on memory. I recall it being a trivial fix.

Handling unclosed tags

The following is currently unhandled:
<p bold text </b</p This is even valid HTML (but not valid XHTML)
<!-- abcd-- >

This should be very easy to fix (add a >? to the regex), but is admittedly not very highly used.
Testing should be done to compare performance hit.

Exclude Tag Check

Are excluded tags handled correctly?
Bug reports require this to be confirmed!

Expand divs open on content

When content is added to a self-closed div tag, it should be converted to a proper closing tag.

<p id="myP" />
set->(..content..)
return: <p id="myP">..content..</p>  

Graph speed differences

Document and release code where applicable.
Using:

  1. Current regex
  2. Fancy regex.
  3. A series of splits
  4. The Pear function
  5. The competing class

Advanced CSS3 selectors

Not all selectors are handled, especially the "odd" ones.
I hope to fill in a list as part of this bug report, and remove them as they are added

Use numbers for index

change index back to numbers instead of using the eNumber variable.

This was a regression involved in some earlier versions of various features, but is not needed.

Accept args w/o array

[get & set]? constructor should be able to accept arguments that are not encapsulated within an array.

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.