Mr.X
Mr.X

Reputation: 31267

What is a round closing bracket in a script tag?

I am learning MVC4 by reading through Professional ASP.NET MVC4, I came across this:

    <script src="~/Scripts/jquery_script.js")
    ></script>

I have never seen a bracket without an opening like this, do anyone knows anything about this?

Upvotes: 1

Views: 95

Answers (1)

T.J. Crowder
T.J. Crowder

Reputation: 1074949

That would be an invalid script tag, it's probably just a typo, an editing error, or (as you say it's in a book and in a lot of places) some kind of rendering or transformation error. Books are frequently written in one source format and converted to various others, it's probably some error in the conversion for the version you're reading.

If it were a real script tag, the browser would probably succeed in understanding it, but just remove the ) and close things up. (The reason it's "invalid" is it defines an attribute called ) with no value, and script elements aren't defined to have an attribute called ).)

Upvotes: 1

Related Questions