https://bugzilla.wikimedia.org/show_bug.cgi?id=67201

            Bug ID: 67201
           Summary: Numeric values passed to mw.html result in script
                    errors
           Product: MediaWiki extensions
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Scribunto
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
       Web browser: ---
   Mobile Platform: ---

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: ?

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to