Why are Element objects a subclass of Node objects? Aren’t elements and nodes the same thing, with different names? Or are there other kinds of Node?
Why are Element objects a subclass of Node objects? Aren’t elements and nodes the
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Elements are not the only node type.Elementnodes are nodes that contain other nodes.Textnodes are nodes that contain text.Attributenodes are nodes that contain attributes.