Giter Club home page Giter Club logo

nodelist.js's People

Contributors

eorroe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nodelist.js's Issues

What are you using this for?

Hi, I'm no longer working on this library, but I wouldn't mind doing so if I knew what people were actually using this for. I'm clueless about what's this library is being used for.

Please share your thoughts on my library and what you're using it for, production? Just playing around with the library? Anything?

classList not working

using classList and its methods add / remove is not working when selecting with nodeList

document.getElementById('id').classList.add('bounceOutLeft', 'hidden')

works but using nodeList:

$$('#id').classList.add('bounceOutLeft', 'hidden');

throws the error: Uncaught TypeError: $$(...).classList.add is not a function(…)

Publish on npm

Just stumbled on this library and it's amazing, even more so it's gzipped size! my workflow complety revolves around npm and I think I'd be great if NodeList gets published as an npm package.

Firefox Bug - textContent

I have trouble getting this code working in firefox. In chrome it works like a charm.
I'm fairly new to Jquery and have no idea how to solve the problem.

$$(".edit").addEventListener("input", function() {
  var content = this.innerHTML;
  $$(".edit").set('textContent', content)
});

Here is a jsfiddle which works in chrome but not in firefox: http://jsfiddle.net/7mf8zfmb/

kind regards

[Question] How works that kind of chaining?

Hi,
found your nodelist.js and really like it.
Looked into the code and would happy to understand how you created that kind of chaining?

$$('.child').id; // ['', '' ... x10]

$$('.child') is a list of nodes (nodelist object) and the chained call .id not exists in your code. So chained calls (properties / methods?) to nodelist mapped to each item of nodelist?

May you explain how that is done? 🥇

Add parent selector?

One thing I have really found useful in jQuery is the parent selector – it lets me target only nodes that have a certain child node. jQuery has multiple ways of doing this, but the one I use, and the one that would probably be easiest to implement, is .has(). (see https://api.jquery.com/has/ )

Is there any possibility something like that could be added?

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.