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

Matthew Flaschen <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
          Component|MonoBook                    |Skin and page rendering
            Product|MediaWiki skins             |MediaWiki
            Summary|Monobook: $wgWellFormedXml  |closeElement causes UI
                   |= false; breaks display of  |breakage when
                   |content action tabs         |$wgWellFormedXml = false;,
                   |                            |does not conform to spec

--- Comment #3 from Matthew Flaschen <[email protected]> ---
It also does not conform to the Living Standard (the same source it cites)
(http://www.whatwg.org/html/syntax.html#optional-tags).  There are all sorts of
rules about when you can omit the tag.  E.g.

"A head element's end tag may be omitted if the head element is not immediately
followed by a space character or a comment."

"An li element's end tag may be omitted if the li element is immediately
followed by another li element or if there is no more content in the parent
element."

Since closeElement does not take into account context, it does not follow these
rules.  In some cases, the DOM might be invalid anyway if you don't follow
these rules (haven't looked into it), but in other's, it's clearly valid.  For
example, it's perfectly fine to have a comment immediately after the head
element; but closeElement can't know that, so it violates the spec.

I'm going to put up a patch to just remove this whole thing.

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