browser/devtools/styleeditor/test/browser_styleeditor_cmd_edit.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 <!DOCTYPE html>
michael@0 2 <html>
michael@0 3 <!-- Any copyright is dedicated to the Public Domain.
michael@0 4 http://creativecommons.org/publicdomain/zero/1.0/ -->
michael@0 5 <head>
michael@0 6 <meta charset="utf-8">
michael@0 7 <title>Resources</title>
michael@0 8 <script type="text/javascript" id="script1">
michael@0 9 window.addEventListener('load', function() {
michael@0 10 var pid = document.getElementById('pid');
michael@0 11 var div = document.createElement('div');
michael@0 12 div.id = 'divid';
michael@0 13 div.classList.add('divclass');
michael@0 14 div.appendChild(document.createTextNode('div'));
michael@0 15 div.setAttribute('data-a1', 'div');
michael@0 16 pid.parentNode.appendChild(div);
michael@0 17 });
michael@0 18 </script>
michael@0 19 <script src="resources_inpage.jsi"></script>
michael@0 20 <link rel="stylesheet" type="text/css" href="resources_inpage1.css"/>
michael@0 21 <link rel="stylesheet" type="text/css" href="resources_inpage2.css"/>
michael@0 22 <style type="text/css">
michael@0 23 p { color: #800; }
michael@0 24 div { color: #008; }
michael@0 25 h4 { color: #080; }
michael@0 26 h3 { color: #880; }
michael@0 27 </style>
michael@0 28 </head>
michael@0 29 <body>
michael@0 30 <style type="text/css" id=style2>
michael@0 31 .pclass { background-color: #FEE; }
michael@0 32 .divclass { background-color: #EEF; }
michael@0 33 .h4class { background-color: #EFE; }
michael@0 34 .h3class { background-color: #FFE; }
michael@0 35 </style>
michael@0 36
michael@0 37 <p class="pclass" id="pid" data-a1="p">paragraph</p>
michael@0 38
michael@0 39 <script>
michael@0 40 var pid = document.getElementById('pid');
michael@0 41 var h4 = document.createElement('h4');
michael@0 42 h4.id = 'h4id';
michael@0 43 h4.classList.add('h4class');
michael@0 44 h4.appendChild(document.createTextNode('h4'));
michael@0 45 h4.setAttribute('data-a1', 'h4');
michael@0 46 pid.parentNode.appendChild(h4);
michael@0 47 </script>
michael@0 48
michael@0 49 </body>
michael@0 50 </html>

mercurial