4 ms·
Not sure your example would work in a real world situation. The UL would probably have an array attached as it can have multiple children. Then we get into the
by nobleach 13y ago
Not sure your example would work in a real world situation. The UL would probably have an array attached as it can have multiple children. Then we get into the fact that all tags can have attributes, not just a text node.
- talmand 13y agoYou're right, I didn't consider attributes. In my simplified way the parser would need to know which keywords were attributes based on parent element versus keywords that are just new children elements. Which would defeat the purpose. I guess I'm not changing the world today.