S
sleepinglord
We know objects returned from DOM's createElement() method have these
features:
1. They can be added and showed by appendChild method in various of
ways.
2. They can be searched by getElementByXXX and some other method.
3. Some other common method in Node, Element classes.
I'd like to write a class. It can be compatible with DOM's Elements,
that is, can be operated by appendChild, getElementByXXX, etc. How to?
features:
1. They can be added and showed by appendChild method in various of
ways.
2. They can be searched by getElementByXXX and some other method.
3. Some other common method in Node, Element classes.
I'd like to write a class. It can be compatible with DOM's Elements,
that is, can be operated by appendChild, getElementByXXX, etc. How to?