Skip to content

Commit

Permalink
Making sure all <script> blocks are marked 'type="text/javascript"'.
Browse files Browse the repository at this point in the history
  • Loading branch information
gleneivey committed May 6, 2010
1 parent fbe1bf7 commit 3336c6d
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 12 deletions.
4 changes: 2 additions & 2 deletions specs/fixtures/scope/attribute.html
Expand Up @@ -15,7 +15,7 @@
</title>
</head>
<body>
<script>
<script type="text/javascript">
function appendAPara(doc, target, pId, pMsg){
var t = doc.createTextNode(pMsg);
var p = doc.createElement("p");
Expand Down Expand Up @@ -86,7 +86,7 @@
sentence to this paragraph.
</p>
</div>
<script>
<script type="text/javascript">
target = "p4"; // already defined in global, so modify not redefine
document.getElementById('div3').onclick = function(){
var targetElement = document.getElementById(target);
Expand Down
2 changes: 1 addition & 1 deletion specs/fixtures/scope/iframe2.html
Expand Up @@ -26,7 +26,7 @@
-->

<!-- matches code in iframeN.html -->
<script>
<script type="text/javascript">
window.onload = function(){
var p = document.createElement('p');
p.setAttribute('id', "pCreatedIframeOnload" +
Expand Down
4 changes: 2 additions & 2 deletions specs/fixtures/scope/iframeN.html
Expand Up @@ -15,7 +15,7 @@
<title>Document for testing arbitrary-depth IFRAME nesting in env.js</title>
</head>
<body>
<script>
<script type="text/javascript">
window.top.numberNestedIframeLoads++;
window.onload = function(){
var p = document.createElement('p');
Expand All @@ -37,7 +37,7 @@
-->

<p>Nesting level:
<script>
<script type="text/javascript">
var counterAsText = window.parent.document.
getElementById('nestingLevel').innerHTML;
var newCount = parseInt(counterAsText) + 1;
Expand Down
9 changes: 6 additions & 3 deletions specs/fixtures/scope/iframeXa.html
Expand Up @@ -21,12 +21,14 @@
This is the text content of a paragraph element.
</p>

<script>//ensure that we can execute JS inline while loading
<script type="text/javascript">
//ensure that we can execute JS inline while loading
document.write(
'\x3cp id="js_generated_p"\x3eDynamically-generated\x3c/p\x3e');
</script>

<script>//verify that our "document" object actually points to this page
<script type="text/javascript">
//verify that our "document" object actually points to this page
document.write('\x3cp id="internalDocRefResult"\x3e');
if (document.getElementById('anElementWithText'))
document.write("First paragraph element exists-found.");
Expand All @@ -35,7 +37,8 @@
document.write('\x3c/p\x3e');
</script>

<script>// append 'p id=appended "An appended paragraph"' to doc....
<script type="text/javascript">
// append 'p id=appended "An appended paragraph"' to doc....
function checkEventsWithinIframe(){
var t = document.createTextNode("An appended paragraph");
var p = document.createElement("p");
Expand Down
9 changes: 6 additions & 3 deletions specs/fixtures/scope/iframeXb.html
Expand Up @@ -25,12 +25,14 @@


<!-- elements and scripting here match test cases in ../../scope/spec.js -->
<script>//ensure that we can execute JS inline while loading
<script type="text/javascript">
//ensure that we can execute JS inline while loading
document.write(
'\x3cp id="js_generated_p"\x3eDynamically-generated\x3c/p\x3e');
</script>

<script>//verify that our "document" object actually points to this page
<script type="text/javascript">
//verify that our "document" object actually points to this page
document.write('\x3cp id="internalDocRefResult"\x3e');
if (document.getElementById('anElementWithText'))
document.write("First paragraph element exists-found.");
Expand All @@ -39,7 +41,8 @@
document.write('\x3c/p\x3e');
</script>

<script>// append 'p id=appended "An appended paragraph"' to doc....
<script type="text/javascript">
// append 'p id=appended "An appended paragraph"' to doc....
function checkEventsWithinIframe(){
var t = document.createTextNode("An appended paragraph");
var p = document.createElement("p");
Expand Down
2 changes: 1 addition & 1 deletion specs/fixtures/scope/trivial.html
Expand Up @@ -12,7 +12,7 @@
lang="en" dir="ltr" id="html">
<head>
<title>Nearly-Empty HTML Page</title>
<script>
<script type="text/javascript">
if (opener.top.functionToCallFromSubwindowOnload != null)
window.onload = opener.top.functionToCallFromSubwindowOnload;
</script>
Expand Down

0 comments on commit 3336c6d

Please sign in to comment.