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

--- Comment #14 from Krinkle <[email protected]> ---
(In reply to comment #9)
> A quick git bisect turns up gerrit change I77593acf as the first revision
> where these tests fail.
> 
> I see that patch changed "<html:msg blah />" to "<html:msg blah>" in a bunch
> of these tests. And putting those slashes back makes the tests pass in IE8
> here.

The commit changed all instances of <span ../></span> to <span ..></span> which
was indeed a good change as the former is invalid.

However it also changes some (not all) uses of <html .. /> to <html ..>. That's
wrong and invalid html.

> So the question is whether $( '<div><html:msg></div>' ) is supposed to work
> in jQuery, or whether it just happens to work in browsers other than IE6-8
> even though that isn't guaranteed.

jQuery is not supposed to fix this, garbage in, garbage out. This is handled by
the browser natively. Modern browsers (HTML5 and up) tend to take this fine and
just close it silently and treats it as a would-be void tag.

However IE is notorious for throwing up on these. Especially in cases like
<div><input></div> (no closing tag, not even self-closing) and
<ul><li><a/></li></ul> (weird use of <a/> that should be <a></a>).

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