Comments (3)
Yeah, i figured someone would complain about this someday. The trouble is with non-uniform structures in the same list. Your list has all ul that contain lis in it, so HTML.body.ul.li makes all the sense in the world. But what about HTML.query('.foo') where there are multiple .foo elements that all are different tags and have different child tags? It gets messy, and could even become a performance drag for large lists with many/diverse child elements.
Basically, i tried to keep it simple here. I knew that cases like HTML.body.ul.li could always be worked around: HTML.body.ul.query('li'), but that if i proxied all child elements from all list members that people working with large/diverse lists could get confusing/slow proxied getters even if they were not using them.
I could probably be swayed on this, but for now, i thinking avoiding a potential problem that couldn't be worked around easily is better than creating a surprising behavior that can be worked around easily.
from html.
Oh, and let's leave this open for others to comment. I'm very interested in hearing from the community on this one.
from html.
Thanks for explain.
from html.
Related Issues (20)
- Deprecating event() HOT 5
- Using require in node-webkit HOT 19
- Library not found at cdnjs HOT 3
- how to use it?
- Adding text nodes HOT 3
- How to use inside node? HOT 2
- Manipulate XML string HOT 3
- no main declared in package.json
- Uncaught TypeError: Failed to execute 'add' on 'HTMLSelectElement': The provided value is not of type '(HTMLOptionElement or HTMLOptGroupElement)' HOT 4
- .textContent not working properly HOT 15
- document is terrible HOT 2
- files hosted on cdnjs HOT 2
- No update? HOT 3
- Voyeur performance issue HOT 8
- Some demo issues HOT 8
- Offer a comparison with dunxrion/voyeur.js HOT 2
- ES6 has Array.prototype.find (conflicts with HTML._.fn.find for element lists) HOT 1
- Component.js Package HOT 10
- Please tag HTML.js releases HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from html.