shithub: mycel

Download patch

ref: c2fc12eab27c5c35c704b71a1330280065c3eecc
parent: dfa9164394dc393c5956104cc7e2efce6b8bf041
author: Philip Silva <philip.silva@protonmail.com>
date: Fri May 7 14:28:56 EDT 2021

Revert br

- it crashes that way

--- a/browser/browser.go
+++ b/browser/browser.go
@@ -1102,10 +1102,6 @@
 			href := n.Attr("href")
 			el = InnerNodesToBox(r+1, b, n)
 			el.makeLink(href)
-		case "br":
-			ui := NewLabel("", n)
-
-			return NewElement(ui, n)
 		case "noscript":
 			if *ExperimentalJsInsecure || !*EnableNoScriptTag {
 				return
--- a/style/stylesheets.go
+++ b/style/stylesheets.go
@@ -31,7 +31,7 @@
 
 const AddOnCSS = `
 /* https://developer.mozilla.org/en-US/docs/Web/HTML/Inline_elements */
-a, abbr, acronym, audio, b, bdi, bdo, big, /*br,*/ button, canvas, cite, code, data, datalist, del, dfn, em, embed, i, iframe, img, input, ins, kbd, label, map, mark, meter, noscript, object, output, picture, progress, q, ruby, s, samp, script, select, slot, small, span, strong, sub, sup, svg, template, textarea, time, u, tt, var, video, wbr {
+a, abbr, acronym, audio, b, bdi, bdo, big, br, button, canvas, cite, code, data, datalist, del, dfn, em, embed, i, iframe, img, input, ins, kbd, label, map, mark, meter, noscript, object, output, picture, progress, q, ruby, s, samp, script, select, slot, small, span, strong, sub, sup, svg, template, textarea, time, u, tt, var, video, wbr {
   display: inline;
 }
 
@@ -47,10 +47,6 @@
 /* https://developer.mozilla.org/en-US/docs/Web/HTML/Block-level_elements */
 address, article, aside, blockquote, details, dialog, dd, div, dl, dt, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup, hr, li, main, nav, ol, p, pre, section, table, ul {
   display: block;
-}
-
-br {
-	display: block;
 }
 
 a {