]> Cypherpunks repositories - gostls13.git/commitdiff
all: use HTML5 br tags
authorJohn Bampton <jbampton@gmail.com>
Fri, 5 Mar 2021 01:53:00 +0000 (01:53 +0000)
committerEmmanuel Odeke <emmanuel@orijtech.com>
Sat, 13 Mar 2021 03:38:42 +0000 (03:38 +0000)
In HTML5 br tags don't need a closing slash

Change-Id: Ic53c43faee08c5b1267daa9a02cc186b1c255ca1
GitHub-Last-Rev: 652208116944d01b23b8af8f1af485da5e916d32
GitHub-Pull-Request: golang/go#44283
Reviewed-on: https://go-review.googlesource.com/c/go/+/292370
Reviewed-by: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Emmanuel Odeke <emmanuel@orijtech.com>

misc/trace/trace_viewer_full.html
src/cmd/compile/internal/ssa/html.go
src/cmd/trace/mmu.go
src/encoding/xml/xml.go
src/encoding/xml/xml_test.go
src/net/http/pprof/pprof.go

index ef2e0ea5733571a6fb021a6ccb6202eeeb24720a..ae6e35fca22badf007ee2a735c2937ebb7eba138 100644 (file)
     </style>
     <div style="padding-right: 200px">
       <div style="float:right;  border-style: solid; border-width: 1px; padding:20px">
-        X no feedback<br/>
-        0 uninitialized<br/>
-        . premonomorphic<br/>
-        1 monomorphic<br/>
-        ^ recompute handler<br/>
-        P polymorphic<br/>
-        N megamorphic<br/>
+        X no feedback<br>
+        0 uninitialized<br>
+        . premonomorphic<br>
+        1 monomorphic<br>
+        ^ recompute handler<br>
+        P polymorphic<br>
+        N megamorphic<br>
         G generic
       </div>
     </div>
     <div id="pipeline_per_frame_container">
       <div class="subtitle">Graphics Pipeline and Raster Tasks</div>
       <div class="description">
-        When raster tasks are completed in comparison to the rest of the graphics pipeline.<br/>
+        When raster tasks are completed in comparison to the rest of the graphics pipeline.<br>
         Only pages where raster tasks are completed after beginFrame is issued are included.
       </div>
       <tr-v-ui-raster-visualization id="rasterVisualization">
index c06b5808e1c00296653f87cfd56a680c4a22c9b4..4d191199fbafe1b3f5f61882a40aced0e836cf36 100644 (file)
@@ -1064,7 +1064,7 @@ func (f *Func) HTML(phase string, dot *dotWriter) string {
        p := htmlFuncPrinter{w: buf}
        fprintFunc(p, f)
 
-       // fprintFunc(&buf, f) // TODO: HTML, not text, <br /> for line breaks, etc.
+       // fprintFunc(&buf, f) // TODO: HTML, not text, <br> for line breaks, etc.
        fmt.Fprint(buf, "</code>")
        return buf.String()
 }
index b92fac652cce82f07577dcf4133dc094194c8de2..1d1fd2ea94737d3e95c0e700d120f134115330ee 100644 (file)
@@ -283,7 +283,7 @@ var templMMU = `<!doctype html>
          .done(function(worst) {
             details.text('Lowest mutator utilization in ' + niceDuration(windowNS) + ' windows:');
             for (var i = 0; i < worst.length; i++) {
-              details.append($('<br/>'));
+              details.append($('<br>'));
               var text = worst[i].MutatorUtil.toFixed(3) + ' at time ' + niceDuration(worst[i].Time);
               details.append($('<a/>').text(text).attr('href', worst[i].URL));
             }
@@ -328,27 +328,27 @@ var templMMU = `<!doctype html>
       <div id="mmu_chart" style="width: 900px; height: 500px; display: inline-block; vertical-align: top">Loading plot...</div>
       <div id="options" style="display: inline-block; vertical-align: top">
         <p>
-          <b>View</b><br/>
+          <b>View</b><br>
           <input type="radio" name="view" id="system" checked><label for="system">System</label>
-          <span class="help">?<span>Consider whole system utilization. For example, if one of four procs is available to the mutator, mutator utilization will be 0.25. This is the standard definition of an MMU.</span></span><br/>
+          <span class="help">?<span>Consider whole system utilization. For example, if one of four procs is available to the mutator, mutator utilization will be 0.25. This is the standard definition of an MMU.</span></span><br>
           <input type="radio" name="view" id="perProc"><label for="perProc">Per-goroutine</label>
-          <span class="help">?<span>Consider per-goroutine utilization. When even one goroutine is interrupted by GC, mutator utilization is 0.</span></span><br/>
+          <span class="help">?<span>Consider per-goroutine utilization. When even one goroutine is interrupted by GC, mutator utilization is 0.</span></span><br>
         </p>
         <p>
-          <b>Include</b><br/>
+          <b>Include</b><br>
           <input type="checkbox" id="stw" checked><label for="stw">STW</label>
-          <span class="help">?<span>Stop-the-world stops all goroutines simultaneously.</span></span><br/>
+          <span class="help">?<span>Stop-the-world stops all goroutines simultaneously.</span></span><br>
           <input type="checkbox" id="background" checked><label for="background">Background workers</label>
-          <span class="help">?<span>Background workers are GC-specific goroutines. 25% of the CPU is dedicated to background workers during GC.</span></span><br/>
+          <span class="help">?<span>Background workers are GC-specific goroutines. 25% of the CPU is dedicated to background workers during GC.</span></span><br>
           <input type="checkbox" id="assist" checked><label for="assist">Mark assist</label>
-          <span class="help">?<span>Mark assists are performed by allocation to prevent the mutator from outpacing GC.</span></span><br/>
+          <span class="help">?<span>Mark assists are performed by allocation to prevent the mutator from outpacing GC.</span></span><br>
           <input type="checkbox" id="sweep"><label for="sweep">Sweep</label>
-          <span class="help">?<span>Sweep reclaims unused memory between GCs. (Enabling this may be very slow.).</span></span><br/>
+          <span class="help">?<span>Sweep reclaims unused memory between GCs. (Enabling this may be very slow.).</span></span><br>
         </p>
         <p>
-          <b>Display</b><br/>
+          <b>Display</b><br>
           <input type="checkbox" id="mut"><label for="mut">Show percentiles</label>
-          <span class="help">?<span>Display percentile mutator utilization in addition to minimum. E.g., p99 MU drops the worst 1% of windows.</span></span><br/>
+          <span class="help">?<span>Display percentile mutator utilization in addition to minimum. E.g., p99 MU drops the worst 1% of windows.</span></span><br>
         </p>
       </div>
     </div>
index 6f9594d7ba7a3ae2cc1609e910b95d4020497b57..384d6ad4b86b49dfa06a0d12de5a2d287a43eac1 100644 (file)
@@ -261,7 +261,7 @@ func NewTokenDecoder(t TokenReader) *Decoder {
 // call to Token. To acquire a copy of the bytes, call CopyToken
 // or the token's Copy method.
 //
-// Token expands self-closing elements such as <br/>
+// Token expands self-closing elements such as <br>
 // into separate start and end elements returned by successive calls.
 //
 // Token guarantees that the StartElement and EndElement
index 5672ebb375f0d4a25019e0ea402922f6c60cd9a8..5a10f5309dce3f28afe260a22e20182a52e966a6 100644 (file)
@@ -940,7 +940,7 @@ func (m mapper) Token() (Token, error) {
 }
 
 func TestNewTokenDecoderIdempotent(t *testing.T) {
-       d := NewDecoder(strings.NewReader(`<br/>`))
+       d := NewDecoder(strings.NewReader(`<br>`))
        d2 := NewTokenDecoder(d)
        if d != d2 {
                t.Error("NewTokenDecoder did not detect underlying Decoder")
index 5389a388c17de3dd2c7dc9b4263c6c49942ec87b..a854fef5d38c53fdcc30b99b3da6dc37b7273385 100644 (file)
@@ -431,7 +431,7 @@ Types of profiles available:
 
        b.WriteString(`</table>
 <a href="goroutine?debug=2">full goroutine stack dump</a>
-<br/>
+<br>
 <p>
 Profile Descriptions:
 <ul>