In this module:
local p = {}
function p.main(frame)
local builder = mw.html.create('span'):css('opacity', 0)
return tostring(builder)
end
return p
The call to p.main() results in the following script error:
Lua error: bad argument #1 to 'gsub' (string expected, got number).
Backtrace:
[C]: in function "v" mw.ustring.lua:61: ? (tail call): ? mw.html.lua:113: in function "_build" mw.html.lua:51: ? [C]: in function "tostring" Module:Sandbox/Jackmcbarn:5: in function "chunk" mw.lua:478: ?
Version: unspecified
Severity: normal