mod_xhtmlim/mod_xhtmlim.lua
changeset 3408 6444fb5dbb51
parent 2870 276f7af8afd1
child 3703 1f68287138e3
equal deleted inserted replaced
3407:823027110e29 3408:6444fb5dbb51
    85 						tag.attr[attr] = "https://url.was.invalid/";
    85 						tag.attr[attr] = "https://url.was.invalid/";
    86 					end
    86 					end
    87 				end
    87 				end
    88 			end
    88 			end
    89 		else
    89 		else
    90 			-- Can't happen with the above assert.
    90 			tag.name = "span"
    91 			return nil;
    91 			tag.attr = { xmlns = "http://www.w3.org/1999/xhtml" }
    92 		end
    92 		end
    93 		-- Check child tags
    93 		-- Check child tags
    94 		tag:maptags(sanitize_xhtml);
    94 		tag:maptags(sanitize_xhtml);
    95 		-- This tag is clean!
    95 		-- This tag is clean!
    96 		return tag;
    96 		return tag;