Module:Error: Difference between revisions

Content deleted Content added
test for all whitespace values rather than just the blank string
more comments
Line 9:
local tag = mw.ustring.lower(tostring(args.tag))
 
-- Work out what html tag we should use.
local t
if tag == 'p' or tag == 'span' or tag == 'div' then
Line 17 ⟶ 18:
local root = HtmlBuilder.create(t)
 
-- Generate the html
root
.addClass('error')