jskinner / DefaultPackages

Old bug tracker for Sublime Text's "Default Packages", e.g. bad syntax highlighting
http://web.archive.org/web/20150524043750/https://www.sublimetext.com/forum/viewtopic.php?f=2&t=12095
26 stars 2 forks source link

There is no need to include the "text/javscript" type for <script> tags in HTML #185

Closed FichteFoll closed 8 years ago

FichteFoll commented 8 years ago

From @Saket-Komawar on March 25, 2016 18:10

OS: Linux x86_64(Ubuntu) Sublime version: Sublime Text Build 3103 on

When we will try to add <script> tag in HTML file as shown in the first image(initial.png), AutoComplete options will pop up. Once <script> from AutoComplete options is selected, ST will return <script> tag as: <script type="text/javascript"></script> as shown in second image(final.png).

But there is NO need of adding type="text/javascript" attribute as :

JavaScript is the default scripting language in HTML.

initial final

Copied from original issue: SublimeTextIssues/Core#1157

FichteFoll commented 8 years ago

Subtle pointer: https://github.com/sublimehq/Packages/blob/20bb6038d0fb54cc76dc4ef22e810f80fba909e9/HTML/html_completions.py#L296

wbond commented 8 years ago

This is a duplicate of #156