msva / lua-htmlparser

An HTML parser for lua.
234 stars 44 forks source link

Fix sample.lua iteration #57

Closed yaw-man closed 3 years ago

yaw-man commented 3 years ago

The sample script did not always iterate over the output of :select() correctly. It sometimes treated the keys as attributes, when in fact the keys are numbers, and the values are attributes. This caused an error ('attempt to index a number value') when running the sample script.