[Bug 23587] Provide rationale for content restrictions for script tag

https://www.w3.org/Bugs/Public/show_bug.cgi?id=23587

--- Comment #7 from Robin Berjon <robin@w3.org> ---
(In reply to Jakub Łopuszański from comment #5)
> Could you provide some real world scenario in which the rules above would be
> contrary to authors intention?

There are plenty of cases in which, if we could simplify things so as to make
them more palatable to authors, we would. We don't just introduce wanton
complexity.

But there is a *lot* of legacy to account for here. The parsing algorithm
matches that legacy, and ensures that content that parses properly today,
sometimes against really complex rules, will keep on parsing tomorrow. So the
basic story is: backcompat.

Yes, that can make generating HTML hard. Honestly I don't think there's much we
can do about that, save write libraries (for server-side programming languages)
that do it right and advocate this in the community.

Leif: unless I've missed something that requires action here, please close this
bug.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Wednesday, 30 October 2013 17:15:34 UTC