Should be in html.js. Also, we should check whether elements have the list style, not whether the element name is a list. Checking the style may be a problem if the element is not attached to the document though (because styles come from a stylesheet, and there is no stylesheet associated with the elements unless they are attached).