On 09/04/2019 10:31, Anne van Kesteren wrote:
On Tue, Apr 9, 2019 at 5:56 AM Cameron McCormack <c...@mcc.id.au> wrote:
On Tue, Apr 9, 2019, at 1:39 PM, Brian Grinstead wrote:
I'd like to rewrite markup in the tree to avoid using the [type]
attribute on <script> tags when it's unnecessary.
Sounds good to me.
We could similarly remove type="text/css" from <style> elements.
Will you also add a lint to avoid copypasta from elsewhere?
- testing/web-platform: I've excluded this because (a) I expected there
would be tests that are specifically checking behavior for scripts with
different [type] attributes and (b) I wasn't sure if we'd want to
upstream this change. It could be included if that’s wrong.
(a) is correct. It might be good for tests that do not test that to
not have this, but let's leave that to WPT to decide.
I agree we shouldn't change wpt as part of this patch. It's hard to do
automatically in the face of tests for the type attribute itself and,
without a lint, hard to enforce going forwards.
I also wonder if there are other non-wpt tests that would be broken by
such a change??
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform