Commit ed8ddebd authored by davve@opera.com's avatar davve@opera.com

Remove optional type="JavaScript" from script tags

http://www.whatwg.org/specs/web-apps/current-work/#attr-script-type

  The type attribute gives the language of the script or format of the
  data. If the attribute is present, its value must be a valid MIME
  type. The charset parameter must not be specified. The default,
  which is used if the attribute is absent, is "text/javascript"."

Blink is less strict than other browsers. Removing the optional type
attribute enables tests to be run in other browsers, notably Firefox.

BUG=308992
NOTRY=true

Review URL: https://codereview.chromium.org/209333007

git-svn-id: svn://svn.chromium.org/blink/trunk@169872 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 94d5a8d9
......@@ -25,7 +25,7 @@
</g>
</svg>
</div>
<script type="JavaScript">
<script>
function repaintTest() {
document.getElementById("contentBox").style.setProperty("width", "400px");
}
......
......@@ -16,7 +16,7 @@
<circle cx="50%" cy="50%" r="40%" stroke="gray" fill="url(#grad)"/>
</svg>
</div>
<script type="JavaScript">
<script>
function repaintTest() {
document.getElementById("contentBox").style.setProperty("width", "400px");
}
......
......@@ -9,7 +9,7 @@
<rect id="targetRect" width="100%" height="100%" fill="blue"/>
</svg>
</div>
<script type="JavaScript">
<script>
function repaintTest() {
document.getElementById("contentBox").style.setProperty("width", "400px");
}
......
......@@ -9,7 +9,7 @@
<image xlink:href="../W3C-SVG-1.1/resources/smiley.png" width="100%" height="100%" preserveAspectRatio="none"/>
</svg>
</div>
<script type="JavaScript">
<script>
function repaintTest() {
document.getElementById("contentBox").style.setProperty("width", "400px");
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment