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

Gabriel Wicke <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #26 from Gabriel Wicke <[email protected]> ---
(In reply to comment #23)
> I don't think that unbalanced templates are a problem.  They would allow the
> style to leak, but that's no different from how unbalanced templates can
> currently open/close unbalanced tags, etc.  We already have a sanitizer to
> take
> care of the HTML issues, it should also be able to ensure that the scope of
> the
> template doesn't escape out of the content area.

The sanitizer knows nothing about nesting. Style elements need to be wrapped
around a subtree, which is where you run into trouble if your template output
is not a subtree.

Parsoid infers and encapsulates DOM subtrees affected by one or more templates.
Scoped styles could piggy-back on this information, but then you still have to
solve the issue of merging styles from multiple templates in a way that
hopefully resembles the author's intentions.

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