Anonymous user
Module:List: Difference between revisions
Jump to navigation
Jump to search
fix ordered lists - had a stupid variable clash
(simplify the type-property-checking code) |
(fix ordered lists - had a stupid variable clash) |
||
Line 69:
-- Detect if the type attribute specified by args.type is using an invalid value, and if so try passing it as a list-style-type CSS property.
local listStyleType = args.list_style_type or args['list-style-type']
local
if
if not listStyleType then
listStyleType =
end
end
Line 80:
list
.attr('start', args.start)
.attr('type',
.css('list-style-type', listStyleType)
.cssText(args.list_style or args.ul_style or args.ol_style) -- ul_style and ol_style are included for backwards compatibility. No distinction is made for ordered or unordered lists.
|